|
|
@ -2,23 +2,5 @@ |
|
|
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) |
|
|
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) |
|
|
|
cd $SCRIPT_DIR |
|
|
|
cd $SCRIPT_DIR |
|
|
|
|
|
|
|
|
|
|
|
git submodule update --recursive |
|
|
|
git submodule update --remote |
|
|
|
git submodule foreach ' |
|
|
|
git submodule foreach "../makepkg-and-update-db.sh $1" |
|
|
|
#creepy linux magic 2>&1 also pipes through stderr, not needed anymore |
|
|
|
|
|
|
|
#isUpToDate=$(git fetch -v 2>&1 | grep "aktuell") |
|
|
|
|
|
|
|
#isUpToDate="" |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
cp -n $name*.pkg.tar.zst /mnt/pi-usb-ssd/gind-repo/x86_64/ |
|
|
|
|
|
|
|
' |
|
|
|
|