File update.sh of Package python-pcl

#! /bin/bash

NAME=python-pcl
git clone --depth 1 https://github.com/strawlab/$NAME/ ${NAME}
osc rm $NAME-*.tar.bz2
pushd ${NAME}
date=`date +"%Y%m%d"`
VER="0.3.1_$date"
ARC=$NAME-$VER.tar.bz2
git archive master --prefix "$NAME-$VER/" | bzip2 >../$ARC
popd
echo "New revision $VER"
sed -i "s/\(Version: \+\).\+/\1$VER/" $NAME.spec
rm -rf $NAME
osc add $ARC
openSUSE Build Service is sponsored by