]> git.pld-linux.org Git - packages/eventum.git/blob - update-source.sh
- up to bzr4409, with sphinx search support
[packages/eventum.git] / update-source.sh
1 #!/bin/sh
2 set -e
3 dropin=
4
5 # Work in package dir
6 dir=$(dirname "$0")
7 cd "$dir"
8
9 if [ "$1" ]; then
10         rev=$1
11         echo "Using $rev..."
12 fi
13
14 specfile=eventum.spec
15
16 oldrev=$(awk '/^%define[         ]+subver[       ]+/{print $NF}' $specfile)
17 if [ "$oldrev" != "$ver" ]; then
18         echo "Updating $specfile for $rev"
19         sed -i -e "
20                 s/^\(%define[ \t]\+subver[ \t]\+\)[0-9]\+\$/\1$rev/
21         " $specfile
22         ../builder -ncs -5 $specfile
23 else
24         echo "Already up to date"
25 fi
This page took 0.054297 seconds and 4 git commands to generate.