fixing some packaging stuff for Solaris
authorGerald Carter <jerry@samba.org>
Fri, 22 Aug 2003 16:53:17 +0000 (16:53 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 22 Aug 2003 16:53:17 +0000 (16:53 +0000)
packaging/Solaris/makepkg.sh.tmpl [moved from packaging/Solaris/makepkg.sh with 98% similarity]
packaging/bin/update-pkginfo

similarity index 98%
rename from packaging/Solaris/makepkg.sh
rename to packaging/Solaris/makepkg.sh.tmpl
index 8423a1a9b49bb0a5e1aca4a587ff5643ed3db54a..55a2da2c6a093f88143a2badebcf08b2d6397513 100755 (executable)
@@ -144,7 +144,7 @@ if [ -f prototype ]; then
 fi
 
 # Setup version from version.h
-VERSION=`sed 's/#define VERSION \"\(.*\)\"$/\1/' ../../source/include/version.h`
+VERSION=PVERSION
 sed -e "s|__VERSION__|$VERSION|" -e "s|__ARCH__|`uname -p`|" -e "s|__BASEDIR__|$INSTALL_BASE|g" pkginfo.master >pkginfo
 
 sed -e "s|__BASEDIR__|$INSTALL_BASE|g" inetd.conf.master >inetd.conf
index 8432173cc8826bdbf0fd3a49323d7064ebf9aa1e..47f3c3c306b187923e20af80af664f8a97251c17 100755 (executable)
@@ -8,13 +8,9 @@ if [ $# -ne 2 ]; then
     exit 1
 fi
 
-for f in */*/*.tmpl; do
-       f2=`echo $f | sed s/.tmpl//g`
-       echo $f2
-       sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
-done
-for f in */*.tmpl; do
-       f2=`echo $f | sed s/.tmpl//g`
-       echo $f2
-       sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
+for f in `du -a | awk '{print $2}' | grep \.tmpl$`; do
+        f2=`echo $f | sed s/.tmpl//g`
+        echo $f2
+        sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
 done
+