plDist.pl: getTorrent.pl serve.pl rm -f plDist.pl cat serve.pl | sed 's/# Mark for Makefile/# DO NOT EDIT THIS FILE, edit serve.pl and getTorrent.pl instead/' > plDist.pl echo "__DATA__" >> plDist.pl cat getTorrent.pl >> plDist.pl chmod 500 plDist.pl plDistName=plDist-`cat VERSION` dist: plDist.pl getTorrent.pl serve.pl Makefile LICENSE nodes.txt.template VERSION rm -rf ${plDistName} mkdir ${plDistName} cp getTorrent.pl Makefile LICENSE nodes.txt.template README VERSION ${plDistName} cat serve.pl | sed 's/^.*# replace in dist with \(.*\)$$/\1/' > ${plDistName}/serve.pl chmod 644 ${plDistName}/serve.pl tar cvfz ${plDistName}.tar.gz ${plDistName} echo "Subsequent runs of make will delete ${plDistName}" install: plDist.pl rm -f /usr/local/bin/plDist.pl cp plDist.pl /usr/local/bin chmod 555 /usr/local/bin/plDist.pl uninstall: rm -f /usr/local/bin/plDist.pl clean: rm -rf plDist.pl plDist-`cat VERSION`*