| 1 | #! /bin/sh |
| 2 | |
| 3 | CURDIR=`pwd` |
| 4 | cd ~/macports/dports |
| 5 | git pull origin master |
| 6 | cd $CURDIR |
| 7 | TARGET="science/libbiosig" |
| 8 | |
| 9 | mkdir -p tmp/a |
| 10 | mkdir -p tmp/b |
| 11 | cp ~/macports/dports/$TARGET/Portfile ./tmp/a/ |
| 12 | gsed -i '2s/.*/# $Id$/' ./tmp/a/Portfile |
| 13 | cp $TARGET/Portfile ./tmp/b/ |
| 14 | cd tmp |
| 15 | PORT=`echo $TARGET | cut -d'/' -f 2` |
| 16 | diff -ur a b > ../Portfile-$PORT.diff |
| 17 | cd .. |
| 18 | rm -r tmp |