summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-26 09:00:53 +0100
committerErich Eckner <git@eckner.net>2018-02-26 09:00:53 +0100
commit45e7f08ab436087414ba10c862d5f8a59b516d03 (patch)
tree0c06ee1e8488f22010fc37ed101fdcfc30876fc5
parentd9a9ab193a00123d5839505ddfe1563c2286bb9f (diff)
downloadbuilder-45e7f08ab436087414ba10c862d5f8a59b516d03.tar.xz
lib/common-functions: save log of executed scripts - for debugging mysterious errors :-)
-rwxr-xr-xconf/default.conf4
-rwxr-xr-xlib/common-functions9
2 files changed, 11 insertions, 2 deletions
diff --git a/conf/default.conf b/conf/default.conf
index 18f5d73..7e7ed3d 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -14,13 +14,13 @@ else
base_dir=$(printf '%s/..' "$(dirname "$(readlink -f "$0")")")
fi
+work_dir="${base_dir}/work"
+
# shellcheck source=lib/common-functions
. "${base_dir}/lib/common-functions"
# shellcheck source=lib/mysql-functions
. "${base_dir}/lib/mysql-functions"
-work_dir="${base_dir}/work"
-
repo_names='packages community archlinux32'
repo_paths__packages="${work_dir}/repos/packages"
repo_paths__community="${work_dir}/repos/community"
diff --git a/lib/common-functions b/lib/common-functions
index a84271b..80f252c 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -15,6 +15,15 @@ if [ -z "${base_dir}" ]; then
. 'conf/default.conf'
fi
+{
+ printf 'sourcing common-functions for %s\n' "$0"
+ printf '%s parameters:' "$#"
+ printf ' "%s"' "$@"
+ printf '\n'
+} >> \
+ "${work_dir}/command-log"
+
+
# find_pkgbuilds package repository git_repository git_revision mod_git_revision
# find the PKGBUILD and modification of $package from $repository
# sets $PKGBUILD and $PKGBUILD_mod