Mercurial > hg > aboriginal
comparison more/record-commands.sh @ 1701:e4ff2cf4ac62 draft
Don't let NO_CLEANUP prevent record-commands.sh from removing old links when host-tools.sh switches from wrapping host $PATH to wrapping build/host command set.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 24 Oct 2014 07:02:44 -0500 |
parents | f0315ac24c40 |
children | 8fc7542bc770 |
comparison
equal
deleted
inserted
replaced
1700:5a57035b1946 | 1701:e4ff2cf4ac62 |
---|---|
10 | 10 |
11 echo "=== Setting up command recording wrapper" | 11 echo "=== Setting up command recording wrapper" |
12 | 12 |
13 [ -f "$WRAPDIR/wrappy" ] && PATH="$OLDPATH" | 13 [ -f "$WRAPDIR/wrappy" ] && PATH="$OLDPATH" |
14 [ -f "$HOSTTOOLS/toybox" ] && PATH="$(hosttools_path)" | 14 [ -f "$HOSTTOOLS/toybox" ] && PATH="$(hosttools_path)" |
15 blank_tempdir "$WRAPDIR" | 15 NO_CLEANUP= blank_tempdir "$WRAPDIR" |
16 | 16 |
17 # Populate a directory of symlinks with every command in the $PATH. | 17 # Populate a directory of symlinks with every command in the $PATH. |
18 | 18 |
19 path_search "$PATH" "*" 'ln -s wrappy "$WRAPDIR/$FILE"' | dotprogress | 19 path_search "$PATH" "*" 'ln -s wrappy "$WRAPDIR/$FILE"' | dotprogress |
20 | 20 |