mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-29 04:55:51 +03:00
NIX: Add a local nix-build.sh script.
This commit is contained in:
parent
fb2c6fffe1
commit
2c99601267
11
nix-build.sh
Executable file
11
nix-build.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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 release.nix \
|
||||
--arg lvm2Src "`pwd`/lvm-snapshot.tar.gz" \
|
||||
--arg lvm2Nix `pwd` -A "$@"
|
Loading…
Reference in New Issue
Block a user