1f04d11139
OBS-URL: https://build.opensuse.org/request/show/258684 OBS-URL: https://build.opensuse.org/package/show/editors/nedit?expand=0&rev=10
15 lines
436 B
Bash
15 lines
436 B
Bash
#! /bin/bash
|
|
|
|
NAME=nedit
|
|
cvs -d :pserver:anonymous@nedit.cvs.sourceforge.net:/cvsroot/nedit co ${NAME}
|
|
osc rm $NAME-*.tar.bz2
|
|
REV=`sed -n 's/RELEASE=nedit-\([0-9.]\+\).*/\1/p' ${NAME}/Makefile`
|
|
date=`date -u +"%Y%m%d"`
|
|
rev=${REV}_CVS$date
|
|
ARC=$NAME-5.5_CVS$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
|