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;
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.