Rockbox Development > Starting Development and Compiling

Passing options to a script

(1/1)

sunami88:
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: ---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!"
--- End code ---

Thanks.

saratoga:
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. 

Navigation

[0] Message Index

Go to full version