1 # pt -- the MacPorts port tool"
2 # Copyright (c)2007 Alexander Barton, alex@barton.de
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 # Please read the file COPYING, README and AUTHORS for more information.
19 find . -name '.DS_Store' -exec rm -f {} ";"
24 @echo -n "Checking \"pt\" script ... "
25 @bin/pt --version >/dev/null 2>&1; if [ $$? -eq 0 ]; then \
26 echo "OK."; else echo "Failed!"; exit 1; fi
29 install -d -o root -g wheel -m 755 /usr/local/bin
30 install -v -o root -g wheel -m 755 bin/pt /usr/local/bin
31 [ -e /etc/pt.conf ] || install -v -o root -g wheel -m 644 etc/pt.conf /etc
34 name=`basename $$PWD`; \
35 version=`grep "VERSION=" bin/pt | cut -d'"' -f2`; \
36 ditto --norsrc . "/tmp/$$$$/$$name-$$version"; \
37 tar cvzf "$$name-$$version.tar.gz" -C "/tmp/$$$$" \
38 --exclude '*.tar*' "$$name-$$version"; \
41 distcheck: distclean check dist