From f5258aed755575c1abf269348e4e335cdcb17a3b Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 29 Feb 2008 11:30:21 +0000 Subject: - program sa da nainstalovat do /usr/ ( ak sa zmenia dve konstanty tak hocikam :) ) - script na robenie balickov pre debian-like distribuciach testovane pod Debian 4.3r a Ubuntu 7.10 vo VirtualBoxe 1.5.6 git-svn-id: http://opensvn.csie.org/tuxanci_ng@6 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ control | 12 ++++++++++++ deb-build.sh | 23 +++++++++++++++++++++++ include/path.h | 18 +++++++++++------- lang/en.lang | 1 + tuxanci-ng | 5 ----- tuxanci-ng.sh | 5 +++++ 7 files changed, 94 insertions(+), 12 deletions(-) create mode 100644 Makefile create mode 100644 control create mode 100755 deb-build.sh create mode 100644 lang/en.lang delete mode 100755 tuxanci-ng create mode 100755 tuxanci-ng.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2b3c799 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ + +#DIST_DIR=/usr/local +DIST_DIR=/usr + +all: + make -C ./src + +clean: + make -C ./src clean + +run: + ./tuxanci-ng.sh + +svn: + svn ci + +svnr: + svn co http://opensvn.csie.org/tuxanci_ng/ + +install: + cp ./src/tuxanci-ng $(DIST_DIR)/bin/ + mkdir $(DIST_DIR)/share/tuxanci-ng + mkdir $(DIST_DIR)/share/tuxanci-ng/arena + mkdir $(DIST_DIR)/share/tuxanci-ng/font + mkdir $(DIST_DIR)/share/tuxanci-ng/image + mkdir $(DIST_DIR)/share/tuxanci-ng/lang + mkdir $(DIST_DIR)/share/tuxanci-ng/music + mkdir $(DIST_DIR)/share/tuxanci-ng/sound + + cp -rf ./arena/* $(DIST_DIR)/share/tuxanci-ng/arena + cp -rf ./font/* $(DIST_DIR)/share/tuxanci-ng/font + cp -rf ./image/* $(DIST_DIR)/share/tuxanci-ng/image + cp -rf ./lang/* $(DIST_DIR)/share/tuxanci-ng/lang + cp -rf ./music/* $(DIST_DIR)/share/tuxanci-ng/music + cp -rf ./sound/* $(DIST_DIR)/share/tuxanci-ng/sound + +deb: + ./deb-build.sh + +uninstall: + rm -rf $(DIST_DIR)/bin/tuxanci-ng + rm -rf $(DIST_DIR)/share/tuxanci-ng diff --git a/control b/control new file mode 100644 index 0000000..4f65e99 --- /dev/null +++ b/control @@ -0,0 +1,12 @@ +Package: tuxanci-ng +Version: svn5 +Section: Game +Priority: optional +Depends: libc6 (>= 2.2.4-4), libsdl1.2debian (>= 1.2), libsdl-image1.2 (>= 1.2), libsdl-mixer1.2 (>= 1.2), libsdl-ttf2.0-0 (>= 2.0) +Architecture: i386 +Installed-Size: 1844 +Maintainer: Dušan Ďurech +Description: Game tuxanci next generation SVN revision 5 + Game tuxanci next generation SVN revision 5 + . + http://www.tuxanci.org diff --git a/deb-build.sh b/deb-build.sh new file mode 100755 index 0000000..6b889e6 --- /dev/null +++ b/deb-build.sh @@ -0,0 +1,23 @@ + +rm -rf deb + +mkdir deb +mkdir deb/DEBIAN +mkdir deb/usr +mkdir deb/usr/bin +mkdir deb/usr/share + +cp control deb/DEBIAN/ + +cd deb + +echo -e "2.0\n" > DEBIAN/debian-binary + +cp /usr/bin/tuxanci-ng usr/bin/ +cp -rf /usr/share/tuxanci-ng usr/share/ + +md5sum `find ./ -type f | awk '/.\// { print substr($0, 3) }'` > DEBIAN/md5sums + +cd .. +rm -rf *.deb +dpkg -b ./deb tuxanci-ng_i386.deb diff --git a/include/path.h b/include/path.h index 60a7cb3..b48e3d4 100644 --- a/include/path.h +++ b/include/path.h @@ -3,12 +3,16 @@ #define PATH_H -#define PATH_IMAGE "./image/" -#define PATH_FONT "./font/" -#define PATH_ARENA "./arena/" -#define PATH_SOUND "./sound/" -#define PATH_MUSIC "./music/" -#define PATH_CONFIG "./conf/" -#define PATH_LANG "./lang/" +//#define PATH_DIST_DIR "/usr/local/share/tuxanci-ng/" + +#define PATH_DIST_DIR "/usr/share/tuxanci-ng/" + +#define PATH_IMAGE PATH_DIST_DIR "image/" +#define PATH_FONT PATH_DIST_DIR "font/" +#define PATH_ARENA PATH_DIST_DIR "arena/" +#define PATH_SOUND PATH_DIST_DIR "sound/" +#define PATH_MUSIC PATH_DIST_DIR "music/" +#define PATH_CONFIG PATH_DIST_DIR "conf/" +#define PATH_LANG PATH_DIST_DIR "lang/" #endif diff --git a/lang/en.lang b/lang/en.lang new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/lang/en.lang @@ -0,0 +1 @@ + diff --git a/tuxanci-ng b/tuxanci-ng deleted file mode 100755 index f151d8d..0000000 --- a/tuxanci-ng +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -export LD_LIBRARY_PATH="/usr/debug/lib/" -ldd -u src/tuxanci-ng -ulimit -c unlimited -src/tuxanci-ng diff --git a/tuxanci-ng.sh b/tuxanci-ng.sh new file mode 100755 index 0000000..f151d8d --- /dev/null +++ b/tuxanci-ng.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export LD_LIBRARY_PATH="/usr/debug/lib/" +ldd -u src/tuxanci-ng +ulimit -c unlimited +src/tuxanci-ng -- cgit v1.2.3