summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-01-30 15:09:39 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-01-30 15:09:39 +0000
commit36c1b1f348f18d94edd1e00bc0d2a162c83b26f8 (patch)
tree70db53647098b9cafec39ef285b11ccee227dc46
parent7970985b76f3f146d9ff5eefc695413babb3d00e (diff)
downloadmana-client-36c1b1f348f18d94edd1e00bc0d2a162c83b26f8.tar.gz
mana-client-36c1b1f348f18d94edd1e00bc0d2a162c83b26f8.tar.bz2
mana-client-36c1b1f348f18d94edd1e00bc0d2a162c83b26f8.tar.xz
mana-client-36c1b1f348f18d94edd1e00bc0d2a162c83b26f8.zip
Updated Debian Auto-Creation Script.
-rwxr-xr-xGenDeb.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/GenDeb.sh b/GenDeb.sh
index 922086a8..a804bb6c 100755
--- a/GenDeb.sh
+++ b/GenDeb.sh
@@ -19,16 +19,16 @@ then
exit;
fi
-if [ ! -f ./tmw.ini ]; # if tmw.ini doesn't exist
+if [ ! -d ./data ]; # if the data folder doesn't exist...
then
- echo "Can't find the tmw.ini file. Maybe this tmw version is uncomplete...";
+ echo "Can't find the Mana World datas..."
echo "Aborting...";
exit;
fi
-if [ ! -d ./data ]; # if the data folder doesn't exist...
+if [ ! -d ./docs ]; # if the docs folder doesn't exist...
then
- echo "Can't find the Mana World datas..."
+ echo "Can't find the Mana World docs..."
echo "Aborting...";
exit;
fi
@@ -55,7 +55,6 @@ mkdir DEBIAN;
mkdir usr;
mkdir usr/share;
mkdir usr/share/manaworld;
-#cp ../../tmw.ini ./usr/share/manaworld;
cp ../../tmw ./usr/share/manaworld;
cp ../../keyboard.dat ./usr/share/manaworld;
cp -a ../../data ./usr/share/manaworld;
@@ -77,7 +76,6 @@ echo "Creating Rules for the Debian package..."
touch DEBIAN/postinst;
echo "#!/bin/sh" >>DEBIAN/postinst;
echo 'if [ "$1" = "configure" ]; then' >>DEBIAN/postinst;
-echo ' chmod -R 777 /usr/share/manaworld/docs;' >>DEBIAN/postinst;
echo ' if [ -d /usr/games ]; then' >>DEBIAN/postinst;
echo ' cp /usr/share/manaworld/manaworld /usr/games/manaworld;' >>DEBIAN/postinst;
echo ' chmod +x /usr/share/manaworld/manaworld;' >>DEBIAN/postinst;