2008-09-23 11:12:19 +02:00
|
|
|
DIR = \
|
|
|
|
`basename ${PWD}`
|
|
|
|
|
2008-06-29 19:38:39 +02:00
|
|
|
pkg: clean
|
|
|
|
mkdir -p proto
|
2008-09-23 11:12:19 +02:00
|
|
|
cat src/pkginfo.s | sed -e s/~PSTAMP~/`uname -n``date +%Y%m%d%H%M%S`/g > src/pkginfo
|
|
|
|
pkgmk -f src/prototype -d proto -r src
|
2008-06-29 19:38:39 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf proto/*
|
2008-09-23 11:12:19 +02:00
|
|
|
if [ -d proto ] ; then \
|
|
|
|
rmdir proto ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
dist:
|
|
|
|
hg revert --all
|
|
|
|
tar cf ${DIR}.tar -C .. ${DIR}/Changelog -C .. ${DIR}/Makefile \
|
|
|
|
-C .. ${DIR}/README.zfs-auto-snapshot.txt -C .. ${DIR}/src
|
|
|
|
gzip ${DIR}.tar
|