-
Notifications
You must be signed in to change notification settings - Fork 16
/
export-windows
executable file
·41 lines (35 loc) · 1.07 KB
/
export-windows
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
36
37
38
39
40
#!/bin/bash
targDir="../blackbox20winMDI"
repoDir="./"
rm $targDir -R
mkdir $targDir
declare -a arr=("Com" "Comm" "Cons" "Ctl" "Dev" "Docu" "Form" "Fig" "Mdi" "Obx" "Ole" "Sql" "Std" "System" "Text" "Win" "Xhtml" "BlackBoxMDI.exe" "BlackBox.exe.manifest" "LICENSE.txt")
n=0
unset BASH_PARALLEL_PIDS
for i in "${arr[@]}"
do
cp -r $repoDir/$i $targDir/ &
BASH_PARALLEL_PIDS[$n]=$!
n=$(($n + 1))
done
wait ${BASH_PARALLEL_PIDS[@]}
rm $targDir/Std/Mod/Menus.odc
rm $targDir/Std/Mod/Tiles.odc
rm $targDir/Std/Mod/Grids.odc
rm $targDir/Std/Mod/Windows.odc
rm $targDir/Std/Mod/Documents.odc
rm $targDir/Win/Mod/Backends.odc
rm $targDir/Std/Code/Menus.ocf
rm $targDir/Std/Code/Tiles.ocf
rm $targDir/Std/Code/Grids.ocf
rm $targDir/Std/Code/Windows.ocf
rm $targDir/Std/Code/Documents.ocf
rm $targDir/Win/Code/Backends.ocf
rm $targDir/Std/Sym/Menus.osf
rm $targDir/Std/Sym/Tiles.osf
rm $targDir/Std/Sym/Grids.osf
rm $targDir/Std/Sym/Windows.osf
rm $targDir/Std/Sym/Documents.osf
rm $targDir/Win/Sym/Backends.osf
rm $targDir/Std/Rsrc/Menus.odc
mv $targDir/BlackBoxMDI.exe $targDir/BlackBox.exe