5 if [ -e @out@
/nix-support
/setup-hooks.sh
]; then
6 source @out@
/nix-support
/setup-hooks.sh
11 while getopts t
: o
; do
13 t
) storeId
=$
(echo "$OPTARG" |
sed -n "s|^@storeDir@/\\([a-z0-9]\{32\}\\)-.*|\1|p")
14 if [ -z "$storeId" ]; then
15 echo "-t argument must be a Nix store path"
23 # Files to remove the references from
26 test ! -L "$i" -a -f "$i" && regions
+=("$i")
29 for target
in "${targets[@]}" ; do
30 sed -i -e "s|$target|eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee|g" "${regions[@]}"
33 for region
in "${regions[@]}"; do
34 for hook
in "${fixupHooks[@]}"; do
35 eval "$hook" "$region"