live-build/functions
Lyndon Brown fe9195b59c stagefiles: further robustify with auto filenames
as suggested by Raphaël

rather than have fixed stagefile filename strings at all in the scripts,
use `$(basename $0)` to use the name of the script (which is the same for
almost all cases anyway, and the stage files are supposed to be almost
exclusively unique per-script). we can thus simplify things by determining
the filename for most use cases within the functions themselves.

this does change the file used by a couple of scripts, affecting backwards
compatibility of executing live-build upon an existing partially or fully
completed build:
 - binary_grub-pc used "binary_grub"
 - chroot_includes used "includes.chroot"

care had to be taken for the following cases:
 - there are some cases like bootstrap_cache, source_debian and
   bootstrap_debootstrap which are dealing with more than one file, and/or
   otherwise a filename that is not specific to the script itself exactly,
   or should not be based upon its name.
 - some cases like chroot_cache, bootstrap_cache and
   chroot_install-packages need to append something to the end of the name
   depending upon which pass/action mode the script is being executed with.
 - furthermore in the bootstrap_cache case one of the filenames is used
   within the bootstrap_debootstrap and thus needs very careful handling
   to be certain that a change in filename of bootstrap_cache does not
   break bootstrap_debootstrap.

Gbp-Dch: Short
2020-03-17 18:57:02 +00:00
..
aliases.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
architectures.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
arguments.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
bootloaders.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
breakpoints.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
cache.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot_bind_path.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
color.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
common.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
conffile.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
configuration.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
defaults.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
echo.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
exit.sh exit: fix missing local scope 2020-03-17 17:33:31 +00:00
firmwarelists.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
help.sh "Live Systems" -> "Debian Live" 2020-03-11 15:23:31 +00:00
init.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
lockfile.sh locks: tidy lock acquisition 2020-03-13 15:37:38 +00:00
losetup.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
man.sh Revert "Test for executables: replace 'which' with more robust 'command -v'" 2020-03-12 12:32:26 +00:00
packagelists.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
packages.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
sourcelist.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
stagefile.sh stagefiles: further robustify with auto filenames 2020-03-17 18:57:02 +00:00
usage.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
wrapper.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00