1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/nix/build.sh

12 lines
323 B
Bash
Raw Permalink Normal View History

2014-01-23 19:42:54 +04:00
#!/bin/sh
set -ex
rm -f result
rm -f divine-snapshot.tar.gz
rm -rf lvm-snapshot
mkdir lvm-snapshot
git ls-tree -r HEAD --name-only | xargs cp --parents --target-directory=lvm-snapshot
tar cvzf lvm-snapshot.tar.gz lvm-snapshot
nix-build nix/ \
2014-01-23 19:42:54 +04:00
--arg lvm2Src "`pwd`/lvm-snapshot.tar.gz" \
--arg lvm2Nix `pwd` -A "$@"