diff options
author | Michele Calgaro <[email protected]> | 2018-07-30 22:49:19 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-07-30 22:49:19 +0900 |
commit | 10a972bbd7ab75c6d3cd68ec3e30b8a70bf3b168 (patch) | |
tree | 93bac0bbb97f8907b4445d617e4046d6bb1050ea /debian/_buildscripts/local/internals/_pbuilder.sh | |
parent | 55d493de587a08b20eec26ada3cdad49c8329cf9 (diff) | |
download | tde-packaging-10a972bbd7ab75c6d3cd68ec3e30b8a70bf3b168.tar.gz tde-packaging-10a972bbd7ab75c6d3cd68ec3e30b8a70bf3b168.zip |
DEB build scripts:
- fixed support for Devuan Jessie.
- dropped Sarge, Etch, Lenny, Lucid from list of supported distros.
- added auto detection of distro, distro name and architecture.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/_buildscripts/local/internals/_pbuilder.sh')
-rwxr-xr-x | debian/_buildscripts/local/internals/_pbuilder.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/_buildscripts/local/internals/_pbuilder.sh b/debian/_buildscripts/local/internals/_pbuilder.sh index 931fba56f..d2b176ded 100755 --- a/debian/_buildscripts/local/internals/_pbuilder.sh +++ b/debian/_buildscripts/local/internals/_pbuilder.sh @@ -47,7 +47,8 @@ END_D05_01 # Get building branch from .tdescmrevision file if [[ -f "$MOD_BUILD_PATH/.tdescmrevision" ]]; then BUILD_BRANCH=`sed -r "s/([^-]+)-.*/\1/" "$MOD_BUILD_PATH/.tdescmrevision"` - while read l_branch l_repo l_component; do + OLD_IFS=$IFS && IFS=$' \t' + while read l_branch l_repo l_component; do if [ "$l_branch" = "$BUILD_BRANCH" ]; then cat <<END_D05_02 >> "$PBUILDER_DEPS_HOOK" echo "deb [trusted=yes] $l_repo $DISTRO_NAME $l_component" >> /etc/apt/sources.list @@ -55,6 +56,7 @@ END_D05_02 break fi done <<< $(cat "$SCRIPT_DIR/internals/extra_deps.txt" | grep -E "^[[:space:]]*[^#[:space:]]+[[:space:]]+[^[:space:]]+.*$") + IFS=$OLD_IFS fi fi cat <<END_D05_03 >> "$PBUILDER_DEPS_HOOK" |