nedit/update.sh

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