1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/misc/kdehier/files/make-plist.sh
2004-12-13 20:12:15 +00:00

10 lines
337 B
Bash

#!/bin/sh
if [ ! -e dirlist -o ! -e ../Makefile ]; then
echo "Wrong directory; this script needs to be called from"
echo "/usr/ports/misc/kdehier/files !"
exit 1
fi
grep -v "^@comment" dirlist | sed -e "s,$,/.keep_me," | sort | uniq > ../pkg-plist
grep -v "^@comment" dirlist | sed -e "s,^,@dirrm ," | sort -r | uniq >> ../pkg-plist