changeset: 137:20120134e183
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Tue Jul 06 21:24:20 2010 -0400
files: Makefile PKGBUILD util/genchangelog
description:
[debian] Add 'deb' make target.
diff -r 730cdadda3d3 -r 20120134e183 Makefile
--- a/Makefile Wed Jun 23 14:47:42 2010 -0400
+++ b/Makefile Tue Jul 06 21:24:20 2010 -0400
@@ -1,5 +1,6 @@
ROOT=.
include $(ROOT)/mk/hdr.mk
+include $(ROOT)/mk/ixp.mk
DIRS = lib \
cmd \
@@ -11,6 +12,16 @@
>$(ROOT)/man/targets.mk
$(MAKE) -Cman
+deb-dep:
+ IFS=', '; \
+ apt-get -qq install build-essential $$(sed -n 's/([^)]*)//; s/^Build-Depends: \(.*\)/\1/p' debian/control)
+
+DISTRO = unstable
+deb:
+ $(ROOT)/util/genchangelog libixp-hg $(VERSION) $(DISTRO)
+ dpkg-buildpackage -rfakeroot -b -nc
+ [ -d .hg ] && hg revert debian/changelog || true
+
.PHONY: doc
include $(ROOT)/mk/dir.mk
diff -r 730cdadda3d3 -r 20120134e183 PKGBUILD
--- a/PKGBUILD Wed Jun 23 14:47:42 2010 -0400
+++ b/PKGBUILD Tue Jul 06 21:24:20 2010 -0400
@@ -4,11 +4,11 @@
pkgrel=1
pkgdesc="The latest hg pull of libixp, a simple 9P filesystem library"
url="http://libs.suckless.org/libixp"
-license=("MIT")
-arch=("i686" "x86_64")
-makedepends=("mercurial")
-provides=("libixp")
-conflicts=("libixp")
+license=(MIT)
+arch=(i686 x86_64)
+makedepends=(mercurial)
+provides=(libixp)
+conflicts=(libixp)
source=()
options=(!strip)
diff -r 730cdadda3d3 -r 20120134e183 util/genchangelog
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/util/genchangelog Tue Jul 06 21:24:20 2010 -0400
@@ -0,0 +1,30 @@
+#!/bin/sh
+set -ef
+
+ifs="$(echo)"
+name=$1
+vers=$2
+dist=$3
+desc="Upstream build"
+auth="Kris Maglione <kris_AT_suckless.org>"
+date=$(date +'%a, %d %b %Y %T %z')
+if hg root >/dev/null 2>&1; then
+ t() { hg log -r . --template "{$@}"; }
+ vers=$(t rev)
+ desc=$(t desc)
+ auth=$(t author)
+ date=$(t 'date|rfc822date')
+fi
+
+cat >debian/changelog.new <<!
+$name ($vers) $dist; urgency=low
+
+ * $desc
+
+ -- $auth $date
+
+$(cat debian/changelog)
+!
+
+mv debian/changelog.new debian/changelog
+
Received on Wed Jul 07 2010 - 03:24:34 CEST
This archive was generated by hypermail 2.2.0 : Wed Jul 07 2010 - 03:36:04 CEST