diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-29 11:30:21 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-29 11:30:21 +0000 |
| commit | f5258aed755575c1abf269348e4e335cdcb17a3b (patch) | |
| tree | c4a6e09a28b033dd115b32eff4d13b732dcaa4ce | |
| parent | d9e265975297fb712213fbbf12c43b6ca68fc846 (diff) | |
- 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
| -rw-r--r-- | Makefile | 42 | ||||
| -rw-r--r-- | control | 12 | ||||
| -rwxr-xr-x | deb-build.sh | 23 | ||||
| -rw-r--r-- | include/path.h | 18 | ||||
| -rw-r--r-- | lang/en.lang | 1 | ||||
| -rwxr-xr-x | tuxanci-ng.sh (renamed from tuxanci-ng) | 0 |
6 files changed, 89 insertions, 7 deletions
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 @@ -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 <dusan.d@centrum.sk> +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.sh index f151d8d..f151d8d 100755 --- a/tuxanci-ng +++ b/tuxanci-ng.sh |