packaging(RHEL-CTDB): don't show failure messages in check for ccache
[Samba/ekacnet.git] / packaging / bin / update-pkginfo
blob020c773da08a80e4a439e986b0d5a978cb5e2635
1 #!/bin/bash
3 VERSION=$1
4 RELEASE=$2
5 REVISION=$3
7 if [ "x${REVISION}" = "x" ]; then
8 RPMREVISION=""
9 else
10 RPMREVISION=".${REVISION}"
13 if [ $# -ne 3 ]; then
14 echo Usage: update-pkginfo VERSION RELEASE REVISION
15 exit 1
17 # PREV=`echo ${REVISION} | sed 's/[^0-9]//g'`
18 # PREV="."`echo ${REVISION} | sed 's/[0-9]//g'`".${PREV}"
20 for f in `du -a | awk '{print $2}' | grep \.tmpl$`; do
21 f2=`echo $f | sed s/.tmpl//g`
22 echo $f2
23 sed -e s/PVERSION/$VERSION/g \
24 -e s/PRELEASE/$RELEASE/g \
25 -e s/PREVISION/${REVISION}/g \
26 -e s/PRPMREV/${RPMREVISION}/g < $f > $f2
27 done