Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
887 B · 33 lines
Shell
12345678910111213141516171819202122232425262728293031323334#! @shell@
fixupHooks=()
if [ -e @out@/nix-support/setup-hooks.sh ]; then source @out@/nix-support/setup-hooks.shfi
excludes=""while getopts e: o; do case "$o" in e) storeId=$(echo "$OPTARG" | @perl@/bin/perl -ne "print \"\$1\" if m|^\Q@storeDir@\E/([a-z0-9]{32})-.*|") if [ -z "$storeId" ]; then echo "-e argument must be a Nix store path" exit 1 fi excludes="$excludes(?!$storeId)" ;; esacdoneshift $(($OPTIND-1))
for i in "$@"; do if test ! -L "$i" -a -f "$i"; then cat "$i" | @perl@/bin/perl -pe "s|\Q@storeDir@\E/$excludes[a-z0-9]{32}-|@storeDir@/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > "$i.tmp" if test -x "$i"; then chmod +x "$i.tmp"; fi mv "$i.tmp" "$i"
for hook in "${fixupHooks[@]}"; do eval "$hook" "$i" done fidone