summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-22 16:53:17 +0000
committerGerald Carter <jerry@samba.org>2003-08-22 16:53:17 +0000
commitb0d3f40ffe666f768f5ec0d93b84488148b5527e (patch)
tree76b9688858eacec43b05f9f974fd4a7ac922e49e /packaging
parent20603faf2c6e37b1db139cdbbfd4131cb5c33869 (diff)
downloadsamba-b0d3f40ffe666f768f5ec0d93b84488148b5527e.tar.gz
samba-b0d3f40ffe666f768f5ec0d93b84488148b5527e.tar.xz
samba-b0d3f40ffe666f768f5ec0d93b84488148b5527e.zip
fixing some packaging stuff for Solaris
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/Solaris/makepkg.sh.tmpl (renamed from packaging/Solaris/makepkg.sh)2
-rwxr-xr-xpackaging/bin/update-pkginfo14
2 files changed, 6 insertions, 10 deletions
diff --git a/packaging/Solaris/makepkg.sh b/packaging/Solaris/makepkg.sh.tmpl
index 8423a1a9b49..55a2da2c6a0 100755
--- a/packaging/Solaris/makepkg.sh
+++ b/packaging/Solaris/makepkg.sh.tmpl
@@ -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
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
index 8432173cc88..47f3c3c306b 100755
--- a/packaging/bin/update-pkginfo
+++ b/packaging/bin/update-pkginfo
@@ -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
+