diff debian/rules @ 4:c5749e43b1d7

Adding debian files (to original 1.1.29)
author Peter Gervai <grin@grin.hu>
date Wed, 15 Oct 2008 23:35:35 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Wed Oct 15 23:35:35 2008 +0200
@@ -0,0 +1,119 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+#LANGS=de fr pl
+
+LFILES=$(subst intl/,,$(wildcard intl/??.mo))
+LANGS=$(LFILES:.mo=)
+GUILFILES=$(subst intl/gui-,,$(wildcard intl/gui-??.mo))
+GUILANGS=$(GUILFILES:.mo=)
+
+CFLAGS += -g
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+
+version := $(shell dpkg-parsechangelog | \
+	sed -ne 's/^Version: *\([0-9]\+:\)*//p')
+
+tag:
+	cvs tag -c -F $(subst .,_,debian_version_$(version))
+
+include /usr/share/quilt/quilt.make
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: patch configure-stamp 
+	dh_testdir
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+
+	if [ -f doc/bins.1.bak ]; then \
+		mv doc/bins.1.bak doc/bins.1; fi
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# backup original manpages
+	mv doc/bins.1 doc/bins.1.bak
+
+	# regeneate modified manpages
+	docbook-to-man doc/bins.sgml > doc/bins.1
+
+	# Add here commands to install the package into debian/bins.
+	echo | ( DESTDIR=`pwd`/debian/bins PREFIX=/usr ./install.sh )
+	install -m 0755 tools/bins_cleanupgallery debian/bins/usr/bin/
+
+	install -m 0755 tools/add_num_prefix debian/bins/usr/share/doc/bins/examples/
+	install -m 0755 tools/anti_bins debian/bins/usr/share/doc/bins/examples/
+	install -m 0755 tools/bins_addtext debian/bins/usr/share/doc/bins/examples/
+	install -m 0755 tools/bins_txt2xml debian/bins/usr/share/doc/bins/examples/
+	install -m 0755 tools/remove_num_prefix debian/bins/usr/share/doc/bins/examples/
+
+	# install HTML documentation
+	cp doc/*html debian/bins/usr/share/doc/bins/
+
+	# remove bins-edit-gui since it depends on Gtk+ 1.x
+	find debian -name "bins-edit-gui*" -exec rm {} \;
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+	dh_installman
+#	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs ChangeLog
+#	dh_link
+#	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+#	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
+