Re: Can anyone here do paid Grip work?
Dave M <DaveM-TKu7O/[email protected]> Mon, 17 Sep 2007 08:56:23 -0400
| Newsgroups | gmane.comp.multimedia.grip.user |
|---|---|
| Message-ID | <[email protected]> |
At 01:45 PM 9/16/2007 , Cory K. wrote: >I would like to have the ability to: > > * Store and name more encoder profiles. Here is a bash script that I use to do what you are asking for: #!/bin/bash # # Copyright 2007, Dave Markus (Davem at Mich Dot Com) # If you fix bugs, or make improvements, I would # appreciate seeing a copy. I am sure there is much room for improvement :) # Be sure to put "Grip.sh" in your subject line so I get your message. # # This script is free software, and you are welcome to redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, # or (at your option) any later version. http://gplv3.fsf.org/ # # Release: # 2007.02.06 alpha - Dave Markus, first release # Tested with: # - Ubuntu 6.06 (dapper) # - Grip version V3.3.1 (c Mike Oliphant) # # Using the Alacart menu editor, add a # menu entry for each configuration profile. # For example: # # ./Scripts/Grip.sh Books_32_mp3 # ./Scripts/Grip.sh Music_V0-320_mp3 # ./Scripts/Grip.sh Music_V2-256_mp3 # ./Scripts/Grip.sh Music_V3-190_mp3 # ./Scripts/Grip.sh Music_V6-128_mp3 # # Each time you run GRip (by running the script from the menu) # GRips settings will be preserved. # if ! [ -d ~/Apps/ ]; then echo "Grip.sh - Making new directory: ~/Apps/" mkdir ~/Apps fi if ! [ -d ~/Apps/Grip/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/" mkdir ~/Apps/Grip exit fi echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Start." > ~/Apps/Grip/Grip.log 2>&1 if ! [ -d ~/Apps/Grip/$1/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/"$1 >> ~/Apps/Grip/Grip.log 2>&1 mkdir ~/Apps/Grip/$1 >> ~/Apps/Grip/Grip.log 2>&1 fi if [ -e ~/Apps/Grip/$1/.grip ]; then echo "Grip.sh - "$(date +%x" "%X" - ")"Getting Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/Apps/Grip/$1/.grip* ~/ >> ~/Apps/Grip/Grip.log 2>&1 else echo "Grip.sh - No config files in ~/Apps/Grip/"$1"/ Useing existing config!" >> ~/Apps/Grip/Grip.log 2>&1 fi echo "Grip.sh - "$(date +%x" "%X" - ")"Starting Grip." >> ~/Apps/Grip/Grip.log 2>&1 grip echo "Grip.sh - "$(date +%x" "%X" - ")"Saveing Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/.grip* ~/Apps/Grip/$1/ >> ~/Apps/Grip/Grip.log 2>&1 echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Done." >> ~/Apps/Grip/Grip.log 2>&1 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=" >> ~/Apps/Grip/Grip.log 2>&1 ------------------------------- Dave M Davem (at) Mich (dot) Com Ann Arbor, Mich. USA First Sale doctrine under attack, libraries at risk: http://www.eff.org/deeplinks/archives/005400.php ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Grip-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grip-users
Grip.sh
(application/octet-stream, 2.3 KB)
#!/bin/bash # # Copyright 2007, Dave Markus (Davem at Mich Dot Com) # If you fix bugs, or make improvements, I would # appreciate seeing a copy. I am sure there is much room for improvement :) # Be sure to put "Grip.sh" in your subject line so I get your message. # # This script is free software, and you are welcome to redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, # or (at your option) any later version. http://gplv3.fsf.org/ # # Release: # 2007.02.06 alpha - Dave Markus, first release # Tested with: # - Ubuntu 6.06 (dapper) # - Grip version V3.3.1 (c Mike Oliphant) # # Using the Alacart menu editor, add a # menu entry for each configuration profile. # For example: # # ./Scripts/Grip.sh Books_32_mp3 # ./Scripts/Grip.sh Music_V0-320_mp3 # ./Scripts/Grip.sh Music_V2-256_mp3 # ./Scripts/Grip.sh Music_V3-190_mp3 # ./Scripts/Grip.sh Music_V6-128_mp3 # # Each time you run GRip (by running the script from the menu) # GRips settings will be preserved. # if ! [ -d ~/Apps/ ]; then echo "Grip.sh - Making new directory: ~/Apps/" mkdir ~/Apps fi if ! [ -d ~/Apps/Grip/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/" mkdir ~/Apps/Grip exit fi echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Start." > ~/Apps/Grip/Grip.log 2>&1 if ! [ -d ~/Apps/Grip/$1/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/"$1 >> ~/Apps/Grip/Grip.log 2>&1 mkdir ~/Apps/Grip/$1 >> ~/Apps/Grip/Grip.log 2>&1 fi if [ -e ~/Apps/Grip/$1/.grip ]; then echo "Grip.sh - "$(date +%x" "%X" - ")"Getting Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/Apps/Grip/$1/.grip* ~/ >> ~/Apps/Grip/Grip.log 2>&1 else echo "Grip.sh - No config files in ~/Apps/Grip/"$1"/ Useing existing config!" >> ~/Apps/Grip/Grip.log 2>&1 fi echo "Grip.sh - "$(date +%x" "%X" - ")"Starting Grip." >> ~/Apps/Grip/Grip.log 2>&1 grip echo "Grip.sh - "$(date +%x" "%X" - ")"Saveing Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/.grip* ~/Apps/Grip/$1/ >> ~/Apps/Grip/Grip.log 2>&1 echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Done." >> ~/Apps/Grip/Grip.log 2>&1 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> ~/Apps/Grip/Grip.log 2>&1