summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 02:05:44 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-12 02:05:44 -0400
commit2ba01abda390af34704bc35fec9d008c4e98f99b (patch)
tree00f27df75ed7b7512f83dfe932ce44b5274c5d38 /utils
parent76f242f43c2d835d332ee9c449e2858ead571acb (diff)
adding build-freebsd-distinfo to make updating ports simpler.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/build-freebsd-distinfo11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/build-freebsd-distinfo b/utils/build-freebsd-distinfo
new file mode 100755
index 0000000..5d4a2e8
--- /dev/null
+++ b/utils/build-freebsd-distinfo
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
+
+{
+echo "MD5 (monkeysphere_${VERSION}.orig.tar.gz) =" $(md5sum "monkeysphere_${VERSION}.orig.tar.gz" | cut -f1 -d\ )
+echo "SHA256 (monkeysphere_${VERSION}.orig.tar.gz) =" $(sha256sum "monkeysphere_${VERSION}.orig.tar.gz" | cut -f1 -d\ )
+echo "SIZE (monkeysphere_${VERSION}.orig.tar.gz) =" $(stat -c %s "monkeysphere_${VERSION}.orig.tar.gz")
+} > packaging/freebsd/distinfo
+
+sed -i~ 's/^PORTVERSION=.*$/PORTVERSION= '"${VERSION}"/ packaging/freebsd/Makefile