update-version (nagios-4.4.3) | : | update-version (nagios-4.4.4) | ||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
LONGDATE=`date -d "$2" "+%B %d, %Y"` | LONGDATE=`date -d "$2" "+%B %d, %Y"` | |||
SHORTDATE=`date -d "$2" "+%Y-%m-%d"` | SHORTDATE=`date -d "$2" "+%Y-%m-%d"` | |||
YEAR=`date -d "$2" "+%Y"` | YEAR=`date -d "$2" "+%Y"` | |||
else | else | |||
LONGDATE=`date "+%B %d, %Y"` | LONGDATE=`date "+%B %d, %Y"` | |||
SHORTDATE=`date "+%Y-%m-%d"` | SHORTDATE=`date "+%Y-%m-%d"` | |||
YEAR=`date "+%Y"` | YEAR=`date "+%Y"` | |||
fi | fi | |||
# Current version number | # Current version number | |||
CURRENTVERSION=4.4.3 | CURRENTVERSION=4.4.4 | |||
# Last date | # Last date | |||
LASTDATE=2019-01-15 | LASTDATE=2019-07-29 | |||
if [ "x$1" = "x" ] | if [ "x$1" = "x" ] | |||
then | then | |||
echo "Usage: $0 <version number | \"newdate\"> [revision date]" | echo "Usage: $0 <version number | \"newdate\"> [revision date]" | |||
echo "" | echo "" | |||
echo "Run this script with the name of the new version (i.e \"2.0b1\") to " | echo "Run this script with the name of the new version (i.e \"2.0b1\") to " | |||
echo "update version number and modification date in files." | echo "update version number and modification date in files." | |||
echo "Use the \"newdate\" argument if you want to keep the current versio n" | echo "Use the \"newdate\" argument if you want to keep the current versio n" | |||
echo "number and just update the modification date." | echo "number and just update the modification date." | |||
echo "" | echo "" | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |