Dor dicke Gind
2 years ago
1 changed files with 17 additions and 11 deletions
@ -1,18 +1,24 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) |
||||||
|
cd $SCRIPT_DIR |
||||||
|
|
||||||
#git submodule update --recursive |
git submodule update --recursive |
||||||
git submodule foreach ' |
git submodule foreach ' |
||||||
#creepy linux magic 2>&1 also pipes through stderr |
#creepy linux magic 2>&1 also pipes through stderr, not needed anymore |
||||||
#isUpToDate=$(git fetch -v 2>&1 | grep "aktuell") |
#isUpToDate=$(git fetch -v 2>&1 | grep "aktuell") |
||||||
#isUpToDate="" |
#isUpToDate="" |
||||||
if [ $name == "cairo-dock-git" ] |
expireTimeNotifyOSD=10000 |
||||||
then |
currentId=1 |
||||||
echo "Not up to date" |
tmpFile=/tmp/currentNotifyId |
||||||
git pull |
# gets the current notify id from our tmp file |
||||||
#fixes issue with makepkg ... git repo is not a clone of ... |
if [ -s $tmpFile ]; then |
||||||
unset GIT_DIR |
currentId=$(cat $tmpFile) |
||||||
makepkg |
|
||||||
repo-add /mnt/pi-usb-ssd/gind-repo/x86_64/gind-repo.db.tar.gz $name*.pkg.tar.zst |
|
||||||
mv $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ |
|
||||||
fi |
fi |
||||||
|
|
||||||
|
notify-send "Start makepkg for $name" -p -t $expireTimeNotifyOSD -r $currentId -i software-update-available > $tmpFile |
||||||
|
#fixes issue with makepkg ... git repo is not a clone of ... |
||||||
|
unset GIT_DIR |
||||||
|
makepkg |
||||||
|
repo-add /mnt/pi-usb-ssd/gind-repo/x86_64/gind-repo.db.tar.gz $name*.pkg.tar.zst |
||||||
|
cp -n $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ |
||||||
' |
' |
Loading…
Reference in new issue