Dor dicke Gind
2 years ago
1 changed files with 17 additions and 11 deletions
@ -1,18 +1,24 @@
|
||||
#!/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 ' |
||||
#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="" |
||||
if [ $name == "cairo-dock-git" ] |
||||
then |
||||
echo "Not up to date" |
||||
git pull |
||||
expireTimeNotifyOSD=10000 |
||||
currentId=1 |
||||
tmpFile=/tmp/currentNotifyId |
||||
# gets the current notify id from our tmp file |
||||
if [ -s $tmpFile ]; then |
||||
currentId=$(cat $tmpFile) |
||||
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 |
||||
mv $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ |
||||
fi |
||||
cp -n $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ |
||||
' |
Loading…
Reference in new issue