1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00
samba-mirror/packaging/bin/update-pkginfo

21 lines
390 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 */*/*.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
done