diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-07 21:36:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-07 21:36:15 +0900 |
commit | b579819cc6f3186d7b59426c2391f1af3742d3ac (patch) | |
tree | 85fd452f023099a84ee6dec462417a966449cb4c | |
parent | d425b2fe099bd6fd6dde67f7adf2123f66d3ede7 (diff) | |
download | tde-packaging-b579819cc6f3186d7b59426c2391f1af3742d3ac.tar.gz tde-packaging-b579819cc6f3186d7b59426c2391f1af3742d3ac.zip |
DEB build script: fixed handling of packages with multiple - characters.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-x | debian/_buildscripts/local/build_module.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/_buildscripts/local/build_module.sh b/debian/_buildscripts/local/build_module.sh index f999da0eb..3b0adef96 100755 --- a/debian/_buildscripts/local/build_module.sh +++ b/debian/_buildscripts/local/build_module.sh @@ -386,8 +386,8 @@ fi cd "$MOD_BUILD_PATH" MOD_BASENAME=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^([^ ]+).*/\1/"` MOD_MAJOR_VER=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^[^ ]+ \(([^:]+:)?.*/\1/"` -MOD_UP_VER=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^[^ ]+ \(([^:]+:)?([^-]+).*/\2/"` -MOD_DEB_VER=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^[^ ]+ \([^-]+-([^\)]+).*/\1/"` +MOD_UP_VER=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^[^ ]+ \(([^:]+:)?(.*+)-.*/\2/"` +MOD_DEB_VER=`head -n 1 "$MOD_BUILD_PKGING_PATH/changelog" | sed -r "s/^[^ ]+ \(.*+-([^\)]+).*/\1/"` REPO_DATE=`dpkg-parsechangelog -l "$MOD_BUILD_PATH/debian/changelog" | sed -n -e 's|^Date: ||p'` tar cJf "../${MOD_BASENAME}_${MOD_UP_VER}.orig.tar.xz" --exclude="debian" --exclude=".git*" \ |