chiark / gitweb /
Debianization.
authormdw <mdw>
Sat, 29 Nov 2003 23:47:33 +0000 (23:47 +0000)
committermdw <mdw>
Sat, 29 Nov 2003 23:47:33 +0000 (23:47 +0000)
.cvsignore
Makefile
debian/.cvsignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 78b7714..fc1650a 100644 (file)
@@ -4,3 +4,5 @@ rocl-*.tar.gz
 rocl-*.zip
 elite.o
 STEELE.nkc
+deb-build
+build
index 9f8d9ce..d146436 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Makefile for RIGHT ON COMMAND-LINE
 #
-# $Id: Makefile,v 1.13 2003/03/24 08:27:18 mdw Exp $
+# $Id: Makefile,v 1.14 2003/11/29 23:47:33 mdw Exp $
 
 #----- Configuration stuff --------------------------------------------------
 
@@ -67,15 +67,25 @@ clean:
 DISTDIR = $(PACKAGE)-$(VERSION)
 DISTFILES = \
        README Makefile $(SRCFILES) elite.tcl steele.cmdr \
-       elite.def vec.def graph.def $(TCLSCRIPTS)
+       elite.def vec.def graph.def $(TCLSCRIPTS) \
+       debian/rules debian/control debian/copyright debian/changelog
 distdir: $(DISTFILES)
        $(RM) -rf $(DISTDIR)
-       mkdir $(DISTDIR)
-       for i in $(DISTFILES); do ln -s ../$$i $(DISTDIR); done
+       mkdir $(DISTDIR) $(DISTDIR)/debian
+       for i in $(DISTFILES); do \
+         case $$i in \
+           */*) \
+             dir=$${i%/*}; \
+             up=`echo $$dir | sed 's:[^/]\+:..:g'`; \
+             mkdir -p $(DISTDIR)/$$dir;; \
+           *) dir= up=;; \
+         esac; \
+         ln -s ../$$up/$$i $(DISTDIR)/$$i; \
+       done
 disttar: distdir
-       tar chofz $(DISTDIR).tar.gz $(DISTDIR)
+       tar chofz $(INST)$(DISTDIR).tar.gz $(DISTDIR)
 distzip: distdir
-       cd $(DISTDIR) && zip -rq ../$(DISTDIR).zip .
+       cd $(DISTDIR) && zip -rq ../$(INST)$(DISTDIR).zip .
 dist: disttar distzip
        $(RM) -rf $(DISTDIR)
 distcheck: dist
diff --git a/debian/.cvsignore b/debian/.cvsignore
new file mode 100644 (file)
index 0000000..fa3f7e1
--- /dev/null
@@ -0,0 +1,2 @@
+files tmp substvars *.substvars *.debhelper
+rocl
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..a812ff3
--- /dev/null
@@ -0,0 +1,5 @@
+rocl (1.1.4) experimental; urgency=low
+
+  * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org>  Tue, 11 Nov 2003 21:07:29 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..cfee93f
--- /dev/null
@@ -0,0 +1,16 @@
+Source: rocl
+Section: games
+Priority: extra
+Maintainer: Mark Wooding <mdw@nsict.org>
+Build-Depends: tcl8.3, tcl8.3-dev
+Standards-Version: 3.1.1
+
+Package: rocl
+Architecture: any
+Depends: tcl8.3, tk8.3, ${shlibs:Depends}
+Description: Elite tools for the discerning player
+ Right On Command Line is a collection of tools, written in Tcl with
+ some C extensions, for analysing the Elite universe and editing
+ original BBC version commander files, as also used by Elite: The New
+ Kind by Christian Pinder.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..5ce3645
--- /dev/null
@@ -0,0 +1,16 @@
+ROCL is copyright (c) 2003 Straylight/Edgeware.
+
+ROCL is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+ROCL is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have a copy of the GNU General Public License in
+/usr/share/common-licenses/GPL; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..8c1bc68
--- /dev/null
@@ -0,0 +1,44 @@
+#! /usr/bin/make -f
+
+export DH_COMPAT = 4
+
+build:
+       rm -f build
+       make INCLUDES=-I/usr/include/tcl8.3 prefix=/usr
+       touch build
+
+clean:
+       dh_clean
+       make clean
+       rm -f build
+
+install: build
+       dh_clean
+       make install prefix=/usr INST=`pwd`/debian/rocl
+
+binary-arch: install
+       dh_testdir -a
+       dh_testroot -a
+       dh_installdocs -a README
+       dh_compress -a
+       dh_strip -a
+       dh_shlibdeps -a
+       dh_gencontrol -a
+       dh_fixperms -a
+       dh_installdeb -a
+       dh_md5sums -a
+       dh_builddeb -a
+
+binary-indep:
+
+binary: binary-indep binary-arch
+
+source:
+       rm -rf =inst=
+       mkdir -p =inst=/=deb=
+       make dist INST==inst=/
+       cd =inst=/=deb=; tar xvfz ../*.tar.gz
+       d=`pwd`; cd ..; dpkg-source -i -b $$d/=inst=/=deb=/*
+       rm -rf =inst=
+
+.PHONY: binary binary-arch binary-indep clean install source