blob: 1a05ed093c36267724d04f8491992c0679eee26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/sh
CEIBAL_ENCUESTA_PATH='../CeibalEncuesta'
version=$1
if [ -z "$version" ]
then
echo "You need enter version as first param, ex: ./prepare_xo_installer 4.2"
exit 1
fi
echo '#!/bin/sh
tar xzf CeibalEncuesta-'"$version"'.tar.gz
cd CeibalEncuesta-'"$version"' && python setup.py install
cd ../ && rm -rf `ls| grep -i CeibalEncuesta | grep -v -w *.zip| grep -v -w *.desktop`
' > installer.run
while [ ! -f CeibalEncuesta-"$version".tar.gz ]
do
echo "tar.gz file for version "$version" is not present"
echo "you need make with 'python setup.py sdist' and place here."
echo "remember modify version in setup.py file with new "$version
echo "do that and press [ENTER]: "
read key
done
mv installer.run CeibalEncuesta_Gtk3_"$version"_Installer.run
chmod a+x CeibalEncuesta_Gtk3_"$version"_Installer.run
zip installer.zip CeibalEncuesta_Gtk3_"$version"_Installer.run CeibalEncuesta-"$version".tar.gz
if [ "$?" -ne "0" ]
then
echo "Fail: doing gnome installer"
rm -rf CeibalEncuesta_Gtk3_"$version"_Installer.run
rm -rf installer.zip
exit 1
else
mv installer.zip ../installers/CeibalEncuesta_Gtk3_"$version"_Installer.zip
echo ""
ls -l ../installers/CeibalEncuesta_Gtk3_"$version"_Installer.zip
rm -rf installer.zip
rm -rf CeibalEncuesta_Gtk3_"$version"_Installer.run
echo ""
echo "DONE: Gnome gtk3 installer"
fi
exit 0
|