Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Passing options to a script
« previous next »
  • Print
Pages: [1]

Author Topic: Passing options to a script  (Read 1169 times)

Offline sunami88

  • Member
  • *
  • Posts: 15
Passing options to a script
« on: March 22, 2011, 07:32:44 PM »
So here's something basic that I've never been able to figure out; How do I pass options to a script?

I would like to automate the build process, and I have the beginnings of a script to do this, but every time I have to select the target for compilation, or choose Normal/Bootloader/etc. I'm sure there is a way to do this, and I would appreciate some help.

Here's my script, such as it is;

Code: [Select]
reset
# cd to home, and update rockbox from svn
cd
svn update rockbox
echo " "
# Now move to ~/rockbox and pass commands to configure
# Start with the FuzeV2
mkdir ~/rockbox/build-fuzev2/
cd ~/rockbox/build-fuzev2/
# Make sure the build dir is clean
rm -r *
rm ~/rockbox-fuzev2.zip
echo " "
echo " "
read -p "Select FuzeV2 on the following menu. Press any key to continue..."
../tools/configure
make -j6
make zip
mv ./rockbox.zip ~/rockbox-fuzev2.zip
rm -r ~/rockbox/build-fuzev2/*
# Now do the Clip+
echo " "
mkdir ~/rockbox/build-clip+/
cd ~/rockbox/build-clip+/
# Make sure the build dir is clean
rm -r *
rm ~/rockbox-clipp.zip
echo " "
echo " "
read -p "Select Clip+ on the following menu. Press any key to continue..."
../tools/configure
make -j6
make zip
mv ./rockbox.zip ~/rockbox-clipp.zip
rm -r ~/rockbox/build-clip+/*
# Assuming it's all done...
cd
echo " "
echo " "
read -p "Should all be done!"

Thanks.
Logged
The Penis is evil! The Penis shoots Seeds, and makes new Life to poison the Earth with a plague of men, as once it was. But the Gun shoots Death and purifies the Earth of the filth of Brutals. Go forth, and kill! Zardoz has spoken.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Passing options to a script
« Reply #1 on: March 22, 2011, 08:20:59 PM »
Just run "make reconf" if you need to rerun the configure script.  You don't actually need to delete the build dir and rerun configure like you're doing. 
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Passing options to a script
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.