]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Makedist makes semver versions
authorWillem Toorop <willem@nlnetlabs.nl>
Tue, 29 Nov 2016 13:44:29 +0000 (14:44 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Tue, 29 Nov 2016 13:44:29 +0000 (14:44 +0100)
makedist.sh

index 10883cdfa847a9d20de7a42ff6df8184f552c410..f958c626b27cbc1be56584da5edfbdfaf5801a2d 100755 (executable)
@@ -76,7 +76,7 @@ replace_all () {
     replace_text "$1" "@date@" "`date +'%b %e, %Y'`"
 }
     
-CHECKOUT="master"
+CHECKOUT=""
 SNAPSHOT="no"
 RC="no"
 
@@ -104,6 +104,16 @@ while [ "$1" ]; do
     shift
 done
 
+if [ -z "$CHECKOUT" ]
+then
+       if [ "$RC" = "no" ]
+       then
+               CHECKOUT=master
+       else
+               CHECKOUT=develop
+       fi
+fi
+
 # Start the packaging process.
 info "SNAPSHOT is $SNAPSHOT"
 
@@ -156,7 +166,7 @@ RECONFIGURE="no"
 
 if [ "$RC" != "no" ]; then
     info "Building LDNS release candidate $RC."
-    version2="${version}rc$RC"
+    version2="${version}-rc$RC"
     info "Version number: $version2"
 
     replace_text "configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"