zfs-auto-snapshot/Makefile

23 lines
626 B
Makefile
Raw Normal View History

2008-09-23 11:12:19 +02:00
DIR = \
`basename ${PWD}`
ZFS_AUTO_SNAPSHOT_CHANGESET = \
`hg identify`
2008-09-23 11:12:19 +02:00
2008-06-29 19:38:39 +02:00
pkg: clean
mkdir -p proto
find src | cpio -pvdum proto
cat src/lib/svc/method/zfs-auto-snapshot | sed -e "s/~ZFS_AUTO_SNAPSHOT_CHANGESET~/${ZFS_AUTO_SNAPSHOT_CHANGESET}/g" > proto/src/lib/svc/method/zfs-auto-snapshot
pkgmk -f proto/src/prototype -p `uname -n``date +%Y%m%d%H%M%S` -d proto -r proto/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: clean
2008-09-23 11:12:19 +02:00
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