add openarena hack; I guess these hacks are, for now, the easiest way to deal with the few slackbuilds that change the version number or include an svn snapshot or, like openoffice.org, add in the language to the package name string

This commit is contained in:
chess.griffin 2008-08-02 04:14:28 +00:00
parent 0e6c1c9f43
commit ab24a6a0ff

View File

@ -217,6 +217,10 @@ potential updates..." >> $UPDATELIST
if [ $PRGNAM = "openoffice.org" ]; then
NEWSRCVER=$(egrep -m1 "^OOLANG" $NEWSB | sed -e 's/[ #}\t].*$//;s/^.*://;s/-/_/g')
fi
# Ugly hack for openarena ... is there a trend here? :-)
if [ $PRGNAM = "openarena" ]; then
VERSION=$(egrep -m1 "^FINAL_VERSION" $NEWSB | sed -e 's/[ #}\t].*$//;s/^.*-//;s/\"//g')
fi
NEWBUILD=$(egrep -m1 "^BUILD" $NEWSB | sed -e 's/^.*[=-]//;s/\"//;s/[ #}\t].*$//g')
if [[ $VERSION$NEWSRCVER-$NEWARCH-$NEWBUILD > $VER-$ARCH-$BUILD ]]; then
echo $NAME: >> $UPDATELIST