TheProjecter / ultimate-gnome

Automatically exported from code.google.com/p/ultimate-gnome
0 stars 0 forks source link

Modify git-releaser to separate the cleaner. #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What you need to do is:
modify git releaser to add png exporting 
making it general (able to locate the working copy directory)
make possible for the user to choose between different operations as
exporting png or cleaning definitions or packaging etc..

What you have to do when finished:
test it against the different cases

Original issue reported on code.google.com by newmooon on 30 Nov 2008 at 11:25

GoogleCodeExporter commented 9 years ago
I've started working on it in r448 and r449

Original comment by newmooon on 30 Nov 2008 at 11:26

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
#!/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

GoogleCodeExporter commented 9 years ago
I've to remember to put always a ; after every instruction

Original comment by newmooon on 30 Nov 2008 at 1:33

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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