summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile42
-rw-r--r--control12
-rwxr-xr-xdeb-build.sh23
-rw-r--r--include/path.h18
-rw-r--r--lang/en.lang1
-rwxr-xr-xtuxanci-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
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 <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