1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/packaging/bin/update-pkginfo
Gerald Carter 75ac8c17c0 fixing some packaging stuff for Solaris
(This used to be commit b0d3f40ffe)
2003-08-22 16:53:17 +00:00

17 lines
309 B
Bash
Executable File

#!/bin/bash
VERSION=$1
RELEASE=$2
if [ $# -ne 2 ]; then
echo Usage: update-pkginfo VERSION RELEASE
exit 1
fi
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