Hmmm. @gary I'm assuming that now u know a little bit shell scripting. So...
I wud adivice to make individual scripts for each and every package. e.g u wanna make a script that installs gstreamer plugins. Then just make a shellscipt say gstreamer_install.sh for that. Debug it, implement exception handling so that installation can easily takeplace.
So now u have gstreamer_install.sh! Similarly make another shellscript for mplayer and xine and other apps. Name them mplayer_install.sh, xine_install.sh etc. Likewise make 5-6 shellscripts for individual packages that install corresponding packages when invoked individually!!
Now make a main shellscript! Implement "switch" in it coz if-then-else wud be difficult in such case.
OK, I developed the main script for u!!
men()
{
echo -e "\n*********************************"
echo "0. Main menu"
echo "1. mediator"
echo "2. gary "
echo "3. digit "
echo "4. subratabera "
echo "5. gnurag"
echo "6. Exit"
echo "*********************************"
echo ""
}
men
while [ 1 ]
do
echo ""
echo -n "Option : ";read option
echo ""
case $option in
0)men;;
1)
echo "U selected the legendary Mediator. The ultimate. Bless u!";;
2)
echo "U selected @gary who will be famous soon.";;
3)
echo "U selected @digit. The forum experiences no help from the admins which his very unusual!";;
4)
echo "U selected @subratabera. Nice guy....helps others!";;
5)
echo "U selected @gnurag who is a bond in linux field and very helpful guy!";;
6)echo "Adios!";exit;;
*) echo "Dont u know how to select valid option?";;
esac
done
Save it something like "main_script.sh" so its easier to recognise it !!
Here "men" (highlighted one) is a function that invokes menu again n again wheneva needed!
Now what all u need to do is, replace the "name" options in "men" (e.g mediator) with "package install" options like w32codec, gstreamer etc! And then replace the functionality of the corresponding option with appropriate install command like "sh gstreamer_install.sh" which inturn invokes the "gstreamer_install.sh" script and thereby installs gstreamer. After its execution the control will automatically return to the main script!
I hope this helps!!