aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-24 23:14:15 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-24 23:14:15 +0000
commita587a74821c155e281d2a6ce9a9a1d7b6a336fce (patch)
treec5ddd7ed4a1cb1a03a8e9d06d16bbe25c5b153df /bin
parent921b949e82d9b140d69c4487b132fb4ac3185c2a (diff)
Checked in latest from Tom Schouten's darcs repository, which was checked in
19-Feb-2008. Changes are mostly the email address and URLs, but two new objects are also added: pdp_array2grey and pdp_grey2array for converting between Pd arrays and greyscale images. svn path=/trunk/externals/pdp/; revision=9899
Diffstat (limited to 'bin')
-rw-r--r--bin/patchversion9
-rw-r--r--bin/predist6
-rw-r--r--bin/snapshot10
3 files changed, 25 insertions, 0 deletions
diff --git a/bin/patchversion b/bin/patchversion
new file mode 100644
index 0000000..1976db4
--- /dev/null
+++ b/bin/patchversion
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# cat <<EOF | cat
+cat <<EOF | ed -s configure.ac
+,s/PDP_VERSION=.*/PDP_VERSION=$1/
+,wq
+EOF
+
+
diff --git a/bin/predist b/bin/predist
new file mode 100644
index 0000000..dfe6446
--- /dev/null
+++ b/bin/predist
@@ -0,0 +1,6 @@
+
+# patch version if environment variable is set
+[ -z $PDP_DIST_VERSION ] || sh bin/patchversion $PDP_DIST_VERSION
+
+# run autoconf with (patched) configure.ac
+sh bootstrap
diff --git a/bin/snapshot b/bin/snapshot
new file mode 100644
index 0000000..ea93e51
--- /dev/null
+++ b/bin/snapshot
@@ -0,0 +1,10 @@
+[ "$1" == "-d" ] && shift && APPEND="-`date +%Y%m%d_%H%M%S`"
+[ -z "$1" ] && echo "usage $0 [-d] <name>" && exit 1
+
+VER="$1$APPEND"
+
+# for autoconf patch in bin/predist
+export PDP_DIST_VERSION=$VER
+
+# create archive
+exec darcs dist -d "pdp-$VER"