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