Closed GoogleCodeExporter closed 9 years ago
I've started working on it in r448 and r449
Original comment by newmooon
on 30 Nov 2008 at 11:26
I want to add some menu in the script like what is explained here
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_08_02.html
Original comment by newmooon
on 30 Nov 2008 at 11:29
I've found this
http://web.mit.edu/answers/unix/unix_parameters.html
where they talk about passing parameters to a shell script.. my intention is
now to
create a structured script with some parameters.
Original comment by newmooon
on 30 Nov 2008 at 12:56
#!/bin/bash
# GIT-releaser
echo;
echo "Test";
case "$1" in
-home)
echo "home";
;;
*)
echo "?";
;;
esac
exit 0
This will be the structure to make a standard menu in the shell script
Original comment by newmooon
on 30 Nov 2008 at 1:22
I've to remember to put always a ; after every instruction
Original comment by newmooon
on 30 Nov 2008 at 1:33
this test is used to invoke another script
#!/bin/bash
# GIT-releaser
echo;
echo "Test";
case "$1" in
-home)
echo "home"; echo "."; cd theme; ls; echo "."; sh $HOME/Scrivania/test.sh; echo
"."; ls; echo ".";
;;
*)
echo "?";
;;
esac
exit 0
Original comment by newmooon
on 30 Nov 2008 at 2:01
I'm not able to check if a directory exist.. I've tried this code but it
doesn't work
#!/bin/bash
# GIT-releaser
echo;
echo "Test";
file= $HOME/Desktop
if [ -d "$file"]; then
cd Scrivania; ls;
fi
echo "fine";
exit 0
Original comment by newmooon
on 30 Nov 2008 at 2:24
this works for tests over directories
#!/bin/bash
# GIT-releaser
echo;
echo "Test";
prova=`pwd`"/Scrivania";
if test -d "$prova"; then
cd Scrivania; ls; echo "then";
else
echo "else";
fi
echo "fine";
exit 0
Original comment by newmooon
on 30 Nov 2008 at 3:13
On revision r454 the Cleaner has been built and verified. So I think its time to
close this issue and open a new one to build the a new releaser.
Original comment by newmooon
on 30 Nov 2008 at 8:16
Original issue reported on code.google.com by
newmooon
on 30 Nov 2008 at 11:25