Project

General

Profile

« Previous | Next » 

Revision 8988

lib/util.sh: moved $top_file* to runscripts/util.run because they only apply to runscripts

View differences:

lib/runscripts/util.run
28 28
on_exit () { run_args_cmd; }
29 29
trap on_exit EXIT
30 30

  
31
top_file="${top_script%.run}"
32
top_filename="$(basename "$top_file")"
33

  
31 34
fi
lib/util.sh
211 211

  
212 212
top_script="$0" # outermost script
213 213
top_dir="$(dirname "$top_script")"
214
top_file="${top_script%.run}"
215
top_filename="$(basename "$top_file")"
216 214

  
217 215
# auto-removes a command's output file on error (like make's .DELETE_ON_ERROR)
218 216
function to_file () # usage: stdout=... to_file cmd...

Also available in: Unified diff