Compare commits
7
Commits
e73ef2504c
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c4e2d17cc | ||
|
|
0287850d13 | ||
|
|
f9f9ff5129 | ||
|
|
daaeca5bf2 | ||
|
|
c6d02a0a71 | ||
|
|
edae4170e3 | ||
|
|
40b5328739 |
+21
@@ -10,3 +10,24 @@
|
|||||||
[submodule "Mono.Posix"]
|
[submodule "Mono.Posix"]
|
||||||
path = Mono.Posix
|
path = Mono.Posix
|
||||||
url = http://git.blubbfish.net/vs_librarys/Mono.Posix.git
|
url = http://git.blubbfish.net/vs_librarys/Mono.Posix.git
|
||||||
|
[submodule "RaspberryIO_26"]
|
||||||
|
path = RaspberryIO_26
|
||||||
|
url = http://git.blubbfish.net/vs_librarys/RaspberryIO_26.git
|
||||||
|
[submodule "Coordinates"]
|
||||||
|
path = Coordinates
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/Coordinates.git
|
||||||
|
[submodule "DataMatrix.net"]
|
||||||
|
path = DataMatrix.net
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/DataMatrix.net.git
|
||||||
|
[submodule "GPSDLib"]
|
||||||
|
path = GPSDLib
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/GPSDLib.git
|
||||||
|
[submodule "ImageSharp"]
|
||||||
|
path = ImageSharp
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/ImageSharp.git
|
||||||
|
[submodule "StreamDeckSharp"]
|
||||||
|
path = StreamDeckSharp
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/StreamDeckSharp.git
|
||||||
|
[submodule "TelegramBot"]
|
||||||
|
path = TelegramBot
|
||||||
|
url = https://git.blubbfish.net/vs_librarys/TelegramBot.git
|
||||||
|
|||||||
Submodule
+1
Submodule Coordinates added at 86f0509c9a
Submodule
+1
Submodule DataMatrix.net added at ed37b7ba01
Submodule
+1
Submodule GPSDLib added at 0ff9e48e2e
Submodule
+1
Submodule ImageSharp added at 7e8cddf208
+1
-1
Submodule Mono.Posix updated: 749da0d8db...2f0ae844d0
+1
-1
Submodule RaspberryIO updated: e7c3f7af91...2f74732924
Submodule
+1
Submodule RaspberryIO_26 added at 97ca122560
Submodule
+1
Submodule StreamDeckSharp added at 308ba282fb
Submodule
+1
Submodule TelegramBot added at 17393a47d3
+1
-1
Submodule litjson updated: 853958acda...63561dc90d
+1
-1
Submodule mqtt updated: 10a7317bc0...0a913efc4a
@@ -1,19 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
function look_for_update() {
|
function look_for_update() {
|
||||||
if [[ $1 == ./.* ]] || [[ $1 == "." ]]; then
|
if [[ $1 == ./.git ]] || [[ $1 == "." ]]; then
|
||||||
|
echo "Ignore $1"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
printf -v quotedFile '%q' "$1"
|
WithoutPrefix=$(echo -n $1 | cut -c 2-)
|
||||||
if [[ -f $quotedFile/update.sh ]]; then
|
if grep -qx "$WithoutPrefix" .gitignore; then
|
||||||
|
echo "Ignore $1, because it's in .gitignore"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
printf -v FolderNameEscaped '%q' "$1"
|
||||||
|
if [[ -f $1/update.sh ]]; then
|
||||||
echo "Switch to subdir $1 and run update.sh"
|
echo "Switch to subdir $1 and run update.sh"
|
||||||
cd "$1"
|
cd "$1"
|
||||||
bash -c ./update.sh
|
git pull
|
||||||
|
bash -c "./update.sh nobreak"
|
||||||
else
|
else
|
||||||
echo "Pull $quotedFile"
|
if [[ -f $1/.git ]]
|
||||||
|
then
|
||||||
|
echo "Pull $1"
|
||||||
cd "$1"
|
cd "$1"
|
||||||
git pull
|
git pull
|
||||||
|
else
|
||||||
|
echo "Checkout master for $1"
|
||||||
|
git submodule update --init -- "$1"
|
||||||
|
cd "$1"
|
||||||
|
git checkout master
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
export -f look_for_update
|
export -f look_for_update
|
||||||
find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \;
|
find . -maxdepth 1 -type d -exec bash -c 'look_for_update "$0"' {} \;
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
read -p "Press return"
|
read -p "Press return"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user