From: Tomas Krizek Date: Mon, 19 Mar 2018 15:25:02 +0000 (+0100) Subject: debian: build dev packages without symbols file X-Git-Tag: v2.2.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd58edb03237155f13a2cf6d7403be17a071e443;p=thirdparty%2Fknot-resolver.git debian: build dev packages without symbols file --- diff --git a/scripts/build-in-obs.sh b/scripts/build-in-obs.sh index 39f6e6631..fa990a8a2 100755 --- a/scripts/build-in-obs.sh +++ b/scripts/build-in-obs.sh @@ -2,7 +2,7 @@ # Example usage: # 1. place tarball to be released in git root dir -# 2. scripts/make-distrofiles.sh +# 2. scripts/make-distrofiles.sh -s # 3. scripts/build-in-obs.sh knot-resolver-latest project=home:CZ-NIC:$1 diff --git a/scripts/make-distrofiles.sh b/scripts/make-distrofiles.sh index 9c1228acc..0c9f89f00 100755 --- a/scripts/make-distrofiles.sh +++ b/scripts/make-distrofiles.sh @@ -1,6 +1,21 @@ #!/bin/bash -e +# Run with -s to include *.symbols files. + package=knot-resolver +withsymbols=false + +while getopts "s" o; do + case "${o}" in + s) + withsymbols=true + ;; + *) + ;; + esac +done +shift $((OPTIND-1)) + cd "$(git rev-parse --show-toplevel)" version=$(ls ${package}*.tar.xz | sed "s/${package}-\(.*\).tar.xz/\1/") @@ -17,6 +32,11 @@ for file in ${files}; do sed -i "s/__VERSION__/${version}/g" "${file}" done +# Optionally remove symbols file +if [ "$withsymbols" = false ]; then + rm distro/deb/debian/*.symbols +fi + # Rename archive to debian format mv "${package}-${version}.tar.xz" "${package}_${version}.orig.tar.xz"