llvm-toolchain/debian/prepare-new-release.sh
2013-02-26 16:40:09 +00:00

18 lines
447 B
Bash

#!/bin/sh
ORIG_VERSION=3.2
TARGET_VERSION=3.3
ORIG_VERSION_2=3_2
TARGET_VERSION_2=3_3
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`
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
done