diff --git a/new-scripts/generate-awx-source b/new-scripts/generate-awx-source index c49e3bd..39646c7 100755 --- a/new-scripts/generate-awx-source +++ b/new-scripts/generate-awx-source @@ -1,7 +1,5 @@ #!/bin/bash -set -x - source $(dirname "$0")/common-functions VERSION=$(get_version) @@ -53,7 +51,6 @@ DEPS=$DEPS$RHELDEPS BUILDDEPS=$BUILDDEPS$"Build"$RHELDEPS LASTVERSION=$(cd /opt/awx-rpm-v2/versions/ && git branch | sed 's/*/ /g' |grep -B 1 "$VERSION" | head -1) CHANGELOG=$(cd /opt/awx-rpm-v2/awx/ && git log --oneline --decorate $LASTVERSION..$VERSION | cut -d" " -f2- | sed -e "s/^/- /g" | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/\$/\\$/g') -echo $CHANGELOG cp /opt/awx-rpm-v2/templates/awx-rpm-temp.spec /opt/awx-rpm-v2/versions/deps/awx-rpm.spec sed -i "s/Release:.*$/Release: $NEWBUILDVERSION%{dist}/g" /opt/awx-rpm-v2/versions/deps/awx-rpm.spec