summaryrefslogtreecommitdiff
path: root/utils/build-macports-portfile
blob: c5e6a48ded6876808d0287180a6af0264de91386 (plain)
  1. #!/bin/bash -e
  2. PORTFILE="packaging/macports/Portfile"
  3. VERSION=`head -n1 packaging/debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
  4. MD5=`md5sum monkeysphere_${VERSION}.orig.tar.gz | awk '{ print $1 }'`
  5. sed -i~ 's/^version.*$/version '"$VERSION"/ "$PORTFILE"
  6. sed -i~ 's/^checksums.*$/checksums md5 '"$MD5"/ "$PORTFILE"