diff --git a/contrib/redhat-rpm/conserver.spec b/contrib/redhat-rpm/conserver.spec index acb797e..b7b06fb 100644 --- a/contrib/redhat-rpm/conserver.spec +++ b/contrib/redhat-rpm/conserver.spec @@ -4,7 +4,7 @@ # %define pkg conserver -%define ver 8.2.3 +%define ver # define the name of the machine on which the main conserver # daemon will be running if you don't want to use the default diff --git a/contrib/solaris-package/pkginfo b/contrib/solaris-package/pkginfo index af129fb..4739b7c 100644 --- a/contrib/solaris-package/pkginfo +++ b/contrib/solaris-package/pkginfo @@ -1,7 +1,7 @@ PKG="conserver" NAME="Console server and client" CATEGORY="system" -VERSION="8.2.3" +VERSION= DESC="Console server and client" CLASSES=none ARCH=sparc diff --git a/package/make-and-stage-release b/package/make-and-stage-release index 8700e91..f1542fa 100755 --- a/package/make-and-stage-release +++ b/package/make-and-stage-release @@ -15,6 +15,8 @@ if [ ! -f ../conserver-$ver.tar.gz ] || $local; then cd build/conserver-$ver ../../package/setup-configure rm -rf package + sed -i "" -e "/^%define ver/s| ver.*| ver $ver|" contrib/redhat-rpm/conserver.spec + sed -i "" -e "/^VERSION=/s|.*|VERSION=\"$ver\"|" contrib/solaris-package/pkginfo ) $local && exit echo "Creating ../conserver-$ver.tar.gz" diff --git a/package/replicate-version-number b/package/replicate-version-number deleted file mode 100755 index 0d5d21c..0000000 --- a/package/replicate-version-number +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -set -e - -maj=`grep MAJOR conserver/version.h | awk '{print $NF; exit}'` -min=`grep MINOR conserver/version.h | awk '{print $NF; exit}'` -rev=`grep REV conserver/version.h | awk '{print $NF; exit}'` -ver="$maj.$min.$rev" -date=`grep '^version' CHANGES | head -1 | sed -e 's/.*(\(.*\)).*/\1/'` -mandate=`date -j -f '%b %d, %Y' "$date" "+%Y/%m/%d"` - -for i in c*/*.man; do - sed -i "" -e "/^\.TH /s|\".*|\"$mandate\" \"conserver-$ver\" \"conserver\"|" "$i" -done - -sed -i "" -e "/^%define ver/s| ver .*| ver $ver|" contrib/redhat-rpm/conserver.spec -sed -i "" -e "/^VERSION=/s|.*|VERSION=\"$ver\"|" contrib/solaris-package/pkginfo