nedit/update.sh

15 lines
410 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`
date=`date -u +"%Y%m%d"`
rev=${REV}_GIT$date
ARC=$NAME-5.6_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