pacman/scripts
Eli Schwartz 2d8d8af915 scripts: pass on options such as set -x to child processes
When re-running makepkg for fakeroot, if `bash -x makepkg` was used this
is lost. Fix by encoding the current set of options explicitly in the
invocation, both for makepkg and for the wrapper used to test scripts
inside the source tree.

Also change to use ${BASH_SOURCE[0]} instead of $0 as the latter can be
anything the parent process wants, while the former is explicitly set by
bash itself to the filepath of the script.

See http://mywiki.wooledge.org/BashFAQ/028

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-08-10 15:20:40 +10:00
..
completion scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00
libmakepkg scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po Pull updated translations from Transifex 2018-07-27 10:38:57 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am scripts/completion: derive the bash completion directory from pkg-config 2018-08-10 12:37:19 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00
pacman-db-upgrade.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
pacman-key.sh.in scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00
pkgdelta.sh.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
repo-add.sh.in scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00