-
Notifications
You must be signed in to change notification settings - Fork 3
/
fetch_icons.sh
executable file
·35 lines (31 loc) · 1.42 KB
/
fetch_icons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
mydir="$(dirname "$(realpath "$0")")"
if [ -z "$SCHILDIDROID_PATH" ]; then
SCHILDIDROID_PATH="$HOME/AndroidStudioProjects/SchildiChat-android"
fi
SCHILDIDROID_GRAPHICS="$SCHILDIDROID_PATH/graphics"
if [ -d "$SCHILDIDROID_GRAPHICS" ]; then
rsync -av --del --exclude "*.sh" "$SCHILDIDROID_GRAPHICS/" "$mydir/graphics-android/"
else
echo "Did not find SchildiChat-android, please set SCHILDIDROID_PATH properly"
fi
if [ -z "$SCHILDINEXT_PATH" ]; then
SCHILDINEXT_PATH="$HOME/AndroidStudioProjects/schildichat-android-next"
fi
SCHILDINEXT_GRAPHICS="$SCHILDINEXT_PATH/graphics"
if [ -d "$SCHILDINEXT_GRAPHICS" ]; then
rsync -av --del --exclude "*.sh" "$SCHILDINEXT_GRAPHICS/" "$mydir/graphics-android-next/"
else
echo "Did not find SchildiChat-android, please set SCHILDINEXT_PATH properly"
fi
if [ -z "$SCHILDIDESKTOP_PATH" ]; then
SCHILDIDESKTOP_PATH="$mydir/../schildichat-desktop/"
fi
SCHILDIDESKTOP_WEB_GRAPHICS="$SCHILDIDESKTOP_PATH/element-web/graphics"
SCHILDIDESKTOP_DESKTOP_GRAPHICS="$SCHILDIDESKTOP_PATH/element-desktop/graphics"
if [ -d "$SCHILDIDESKTOP_WEB_GRAPHICS" ] && [ -d "$SCHILDIDESKTOP_DESKTOP_GRAPHICS" ]; then
rsync -av --del --exclude "*.sh" "$SCHILDIDESKTOP_WEB_GRAPHICS/" "$mydir/graphics-web/"
rsync -av --del --exclude "*.sh" "$SCHILDIDESKTOP_DESKTOP_GRAPHICS/" "$mydir/graphics-desktop/"
else
echo "Did not find schildichat-desktop, please set SCHILDIDESKTOP_PATH properly"
fi