Commit b3f151e2 authored by Denis Brækhus's avatar Denis Brækhus

Another attempt at weekly versions.

parent a820508e
......@@ -65,7 +65,7 @@ sed -i -e "s|^Section: \([^/]*\)\$|Section: varnish-$V/\1|" debian/control
# Take version override set on Jenkins builds into account.
if [ -n "$WEEKLY_VERSION" ]; then
FULL_VERSION="trunk-${WEEKLY_VERSION}"
FULL_VERSION="${WEEKLY_VERSION}+${DEBVERSION}"
dch -v "$FULL_VERSION" "Release build #$BUILD_NUMBER ID: $BUILD_ID"
elif [[ -n "${DEBVERSION}" ]]; then
if [ "$RELEASE" == "" ]; then
......
......@@ -23,8 +23,8 @@ cp -r ../redhat/* .
ln "$SOURCE" `basename "$SOURCE"`
if [ -n "$WEEKLY_VERSION" ]; then
sed -i -e "s/^Version:.*/Version: trunk/" ./*.spec
sed -i -e "s/.*define v_rc.*/\%define v_rc $WEEKLY_VERSION/" ./*.spec
sed -i -e "s/^Version:.*/Version: $WEEKLY_VERSION/" ./*.spec
sed -i -e "s/.*define v_rc.*/\%define v_rc 0/" ./*.spec
else
findversion "$SOURCE"
sed -i -e "s/^Version:.*/Version: $V.$MINOR/" ./*.spec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment