Move to using empty string for not using a user-controlled
[monkeysphere.git] / utils / build-freebsd-distinfo
1 #!/bin/bash
2
3 VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
4
5 {
6 echo "MD5 (monkeysphere_${VERSION}.orig.tar.gz) =" $(md5sum "monkeysphere_${VERSION}.orig.tar.gz" | cut -f1 -d\ )
7 echo "SHA256 (monkeysphere_${VERSION}.orig.tar.gz) =" $(sha256sum "monkeysphere_${VERSION}.orig.tar.gz" | cut -f1 -d\ )
8 echo "SIZE (monkeysphere_${VERSION}.orig.tar.gz) =" $(stat -c %s "monkeysphere_${VERSION}.orig.tar.gz")
9 } > packaging/freebsd/distinfo
10
11 sed -i~ 's/^PORTVERSION=.*$/PORTVERSION=   '"${VERSION}"/ packaging/freebsd/Makefile