add calibre.SBo helper
This commit is contained in:
parent
2593b67533
commit
ae98ac3157
1 changed files with 13 additions and 0 deletions
13
xap/update-calibre-SBo.sh
Executable file
13
xap/update-calibre-SBo.sh
Executable 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
|
Loading…
Reference in a new issue