"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "devtools/utils/mkrel" between
netmagis-2.3.5.tar.gz and netmagis-2.3.6.tar.gz

About: Netmagis delegates DNS and DHCP administration of some IPv4/v6 networks and domains to users. It is also the heart of a Network Information System.

mkrel  (netmagis-2.3.5):mkrel  (netmagis-2.3.6)
#!/bin/sh #!/bin/sh
#
# Perform various checks and operations to release a new Netmagis version
#
# Usage:
# mkrel [-n] X.Y.Z
# Exemple:
# mkrel 2.3.5
# Option -n perform checks only.
#
# Checks implemented:
# - X, Y and Z are numbers
# - current directory is the root dir of Netmagis repository and
# containts Makefile and CHANGES files
# - current directory is on git branch "X.Y"
# - "make version" returns X.Y.Z
# - first line of the CHANGES file has the correct format (i.e.
# "Version X.Y.Z - $today")
# - tag vX.Y.Z-1 exists (if Z > 0) and tag vX.Y.Z does not exist
#
# Operations implemented:
# - "make distrib" => creates netmagis-X.Y.Z.tar.gz
# - "git tag" with "vX.Y.Z" and "git push"
#
usage () usage ()
{ {
local argv0="$1" msg="$2" local argv0="$1" msg="$2"
( (
if [ "$msg" != "" ] if [ "$msg" != "" ]
then then
echo "$msg" echo "$msg"
fi fi
echo "usage: $argv0 [-n] release" echo "usage: $argv0 [-n] release"
skipping to change at line 92 skipping to change at line 116
if [ "$rel" = "" ] if [ "$rel" = "" ]
then rel=$n then rel=$n
else rel=$rel.$n else rel=$rel.$n
fi fi
done done
tag=v$rel # the new tag tag=v$rel # the new tag
# #
# Get previous release yumber # Get previous release number
# #
if [ $n = 0 ] # last number in release if [ $n = 0 ] # last number in release
then ptag="" then ptag=""
else else
nm1=$((n-1)) nm1=$((n-1))
ptag=$(echo $tag | sed "s/$n\$/$nm1/") ptag=$(echo $tag | sed "s/$n\$/$nm1/")
fi fi
############################################################################## ##############################################################################
 End of changes. 2 change blocks. 
1 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)