summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorjoey <joey>1999-08-28 02:16:36 +0000
committerjoey <joey>1999-08-28 02:16:36 +0000
commit2d2000555c6275a0c5af0725abcd27d5a02f22fd (patch)
tree140a7b108e32ffb0a376df97a6c34866e9fc7ebe /debian/rules
parenta511e6823eb67fdc505b75b2a118c4a8b17037fb (diff)
r261: * No user visible changes. Modified the package to interface better with
my new local build system, which auto-updates the home page when a new debhelper is built.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules44
1 files changed, 8 insertions, 36 deletions
diff --git a/debian/rules b/debian/rules
index 09a09a1..aae9e6b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,9 +19,8 @@ VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Ver
export DH_VERBOSE=1
-build: link-stamp
- # Run regression tests.
- $(MAKE) test
+build: link-stamp test
+# Nothing to do.
clean: link-stamp
./dh_testdir
@@ -99,43 +98,16 @@ binary-indep: link-stamp build
./dh_md5sums
./dh_builddeb
-# Install in the proper location on my ftp server and web server. Not intended
-# for use by anyone except the author.
-OLD_VER=$(shell perl -e '<>;<>;while(<>){last if /^ --/};<>;$$_=<>;print m/\((.*?)\)/'<debian/changelog)
-dist: commit link-stamp
- dpkg-buildpackage -rfakeroot -tc
- if [ `hostname` = 'kite' ] ; then \
- cp ../debhelper_$(VERSION).tar.gz ../../public; \
- rm /home/ftp/pub/code/debhelper/* || true; \
- cp debian/changelog /home/pub/programs/debhelper/CHANGES; \
- echo $(VERSION) > /home/pub/programs/debhelper/LATEST-VERSION-IS; \
- cd ..; rm -rf debhelper-$(OLD_VER); \
- [ -f ../public/debhelper_$(OLD_VER).tar.gz ] && \
- tar zxf ../public/debhelper_$(OLD_VER).tar.gz || \
- tar zxf ../outdated/debhelper_$(OLD_VER).tar.gz; \
- diff -r -u --new-file debhelper-$(OLD_VER) debhelper-$(VERSION) > \
- /home/ftp/pub/code/debhelper/diffs/debhelper-$(VERSION).diff; \
- gzip -9f /home/ftp/pub/code/debhelper/diffs/debhelper-$(VERSION).diff; \
- cd /tmp; rm -f debhelper-$(OLD-VER); \
- fi
-
+# Fix links when checking out of cvs by calling this target.
link-stamp:
sh -e debian/fixlinks
touch link-stamp
-# This is for local use - it tags the current code with the debian version
-# number, then commits the current code using the contents of the changelog
-# as the cvs changelog, then increments the version number
-commit:
- cvs -Q commit -m "`dpkg-parsechangelog | grep '^ '`"
- cvs -Q tag rel-$(shell dpkg-parsechangelog | grep ^Version: \
- |cut -d " " -f 2 |tr '.' '-')
-
-new:
- # Update w/o editing.
- EDITOR=true dch -i 2>/dev/null
- # Dch has to change the bloody directory name. Feh.
- mv . ../debhelper
+# Update the debhelper web page. Not intended for use by anyone except the
+# author.
+installhook:
+ cp debian/changelog /home/pub/programs/debhelper/CHANGES
+ echo $(VERSION) > /home/pub/programs/debhelper/LATEST-VERSION-IS
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary dist