add calibre.SBo helper

This commit is contained in:
Gwenhael Le Moine 2013-02-26 22:56:28 +01:00
parent 2593b67533
commit ae98ac3157

13
xap/update-calibre-SBo.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
LOCATION=/var/lib/sbopkg/SBo/14.0/office/calibre
cd $LOCATION
OLD_VERSION=$(grep VERSION= calibre.SlackBuild.sbopkg | grep -o "[0-9.]*")
NEW_VERSION=$(echo $(echo $OLD_VERSION | grep -o "[0-9]\+.[0-9]\+.")$(echo $(expr $(echo $OLD_VERSION | cut -d. -f 3) + 1)))
sed -i "s|$OLD_VERSION|$NEW_VERSION|g" *.sbopkg
sbopkg -i calibre