update the update script

This commit is contained in:
Sylvestre Ledru 2014-07-31 06:31:33 +00:00
parent 70d16caf36
commit d35fca7baf

View File

@ -1,15 +1,10 @@
#!/bin/sh
ORIG_VERSION=3.4
TARGET_VERSION=3.5
ORIG_VERSION_2=3_4
TARGET_VERSION_2=3_5
ORIG_VERSION=3.5
TARGET_VERSION=3.6
ORIG_VERSION_2=3_5
TARGET_VERSION_2=3_6
LIST=`ls debian/*$ORIG_VERSION*`
for F in $LIST; do
TARGET=`echo $F|sed -e "s|$ORIG_VERSION|$TARGET_VERSION|g"`
svn mv $F $TARGET
done
LIST=`ls debian/*$TARGET_VERSION* debian/control debian/*.install debian/*.links debian/orig-tar.sh debian/rules`
LIST=`ls debian/control debian/orig-tar.sh debian/rules`
for F in $LIST; do
sed -i -e "s|$ORIG_VERSION_2|$TARGET_VERSION_2|g" $F
sed -i -e "s|$ORIG_VERSION|$TARGET_VERSION|g" $F