16 lines
567 B
Bash
16 lines
567 B
Bash
#! /bin/bash
|
|
|
|
NAME=nedit
|
|
git clone git://git.code.sf.net/p/nedit/git ${NAME}
|
|
osc rm $NAME-*.tar.bz2
|
|
REV=`sed -n 's/RELEASE=nedit-\([0-9.]\+\).*/\1/p' ${NAME}/Makefile`
|
|
#REV=`sed -n 's/.*NEDIT_VERSION \+\([0-9.]\+\).*/\1/p' ${NAME}/source/nedit.h`.`sed -n 's/.*NEDIT_REVISION \+\([0-9.]\+\).*/\1/p' ${NAME}/source/nedit.h`
|
|
date=`date -u +"%Y%m%d"`
|
|
rev=${REV}_GIT$date
|
|
ARC=$NAME-${REV}_GIT$date-src.tar.bz2
|
|
tar -cjf $ARC $NAME --exclude "CVS" --exclude ".cvsignore"
|
|
rm -rf $NAME
|
|
echo "New revision $rev"
|
|
sed -i "s/\(Version: \+\).\+/\1$rev/;" ${NAME}.spec
|
|
osc add $ARC
|