5 if [ -e @out@
/nix-support
/setup-hooks.sh
]; then
6 source @out@
/nix-support
/setup-hooks.sh
10 while getopts e
: o
; do
12 e
) storeId
=$
(echo "$OPTARG" | @perl@
/bin
/perl
-ne "print \"\$1\" if m|^\Q@storeDir@\E/([a-z0-9]{32})-.*|")
13 if [ -z "$storeId" ]; then
14 echo "-e argument must be a Nix store path"
17 excludes
="$excludes(?!$storeId)"
24 if test ! -L "$i" -a -f "$i"; then
25 cat "$i" | @perl@
/bin
/perl
-pe "s|\Q@storeDir@\E/$excludes[a-z0-9]{32}-|@storeDir@/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > "$i.tmp"
26 if test -x "$i"; then chmod +x
"$i.tmp"; fi
29 for hook
in "${fixupHooks[@]}"; do