From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 06:05:44 +0000 (-0400) Subject: adding build-freebsd-distinfo to make updating ports simpler. X-Git-Tag: monkeysphere_0.16-1~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ba01abda390af34704bc35fec9d008c4e98f99b;p=monkeysphere.git adding build-freebsd-distinfo to make updating ports simpler. --- 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