adding build-freebsd-distinfo to make updating ports simpler.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 12 Sep 2008 06:05:44 +0000 (02:05 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 12 Sep 2008 06:05:44 +0000 (02:05 -0400)
utils/build-freebsd-distinfo [new file with mode: 0755]

diff --git a/utils/build-freebsd-distinfo b/utils/build-freebsd-distinfo
new file mode 100755 (executable)
index 0000000..5d4a2e8
--- /dev/null
@@ -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