summaryrefslogtreecommitdiff
path: root/packaging/bin/update-pkginfo
blob: 47f3c3c306b187923e20af80af664f8a97251c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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