summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-04-06 21:59:59 -0700
committerJameson Graef Rollins <jrollins@finestructure.net>2009-04-06 22:00:42 -0700
commit436fa72417f0d086347bcaa7256d5f83296bc6d6 (patch)
tree921c8197d7bccfe0c17b099b84ba5e6faf018809 /utils
parent80d903a7cacc0c5c60adfb86067e7c348f83e4c2 (diff)
add new util script to update the macports Portfile
Diffstat (limited to 'utils')
-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"