summaryrefslogtreecommitdiff
path: root/utils/build-macports-portfile
diff options
context:
space:
mode:
authorMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
committerMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
commitdfd67a14003fbfb4b1ba2269e7d47f4d0c44fcf8 (patch)
tree3372902f39b0995a39b62851671fe33e4ceeb56e /utils/build-macports-portfile
parentf77a5d79b4a9b4b44cb3786237931458265e49ed (diff)
parentee3872232ffc40ab0ae7ea823059806f839f2700 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'utils/build-macports-portfile')
-rwxr-xr-xutils/build-macports-portfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/build-macports-portfile b/utils/build-macports-portfile
new file mode 100755
index 0000000..c5e6a48
--- /dev/null
+++ b/utils/build-macports-portfile
@@ -0,0 +1,9 @@
+#!/bin/bash -e
+
+PORTFILE="packaging/macports/Portfile"
+
+VERSION=`head -n1 packaging/debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
+MD5=`md5sum monkeysphere_${VERSION}.orig.tar.gz | awk '{ print $1 }'`
+
+sed -i~ 's/^version.*$/version '"$VERSION"/ "$PORTFILE"
+sed -i~ 's/^checksums.*$/checksums md5 '"$MD5"/ "$PORTFILE"