-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg_send.sh
executable file
·28 lines (25 loc) · 1.01 KB
/
pkg_send.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
#!/usr/bin/env bash
packagename="nback_hex.zip"
case "$(uname)" in
Linux*)
echo "Linux"
find . -name "*.lua" -or -name "*.glsl" -or -name "*.wav" -or -name "*.png" -or -name "*.ttf" ! -name "correct-filelist.lua" | apack $packagename
scp $packagename [email protected]:/home/dekar/www/packages
ssh [email protected] /home/dekar/bin/update_index.lua
rm $packagename
;;
MINGW*)
echo "MinGW"
# изображения из gooi/imgs/* все равно попадают в список файлов.
find . -name "*.lua" -or -name "*.glsl" -or -name "*.wav" -or -name "*.ttf" -or -name "*.png" ! -path "gooi/imgs/*" ! -name "correct-filelist.lua" > files.txt
./correct-filelist.lua files.txt
/c/Program\ Files/7-Zip/7z.exe a $packagename @files_.txt
scp $packagename [email protected]:/home/dekar/www/packages
ssh [email protected] /home/dekar/bin/update_index.lua
rm files.txt
rm files_.txt
#rm $packagename
;;
*)
echo "Unknown system"
esac