From 2ba01abda390af34704bc35fec9d008c4e98f99b Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 12 Sep 2008 02:05:44 -0400 Subject: [PATCH] adding build-freebsd-distinfo to make updating ports simpler. --- utils/build-freebsd-distinfo | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 utils/build-freebsd-distinfo 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 -- 2.26.2