export-windows 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. targDir="../blackbox20winMDI"
  3. repoDir="./"
  4. rm $targDir -R
  5. mkdir $targDir
  6. 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")
  7. n=0
  8. unset BASH_PARALLEL_PIDS
  9. for i in "${arr[@]}"
  10. do
  11. cp -r $repoDir/$i $targDir/ &
  12. BASH_PARALLEL_PIDS[$n]=$!
  13. n=$(($n + 1))
  14. done
  15. wait ${BASH_PARALLEL_PIDS[@]}
  16. rm $targDir/Std/Mod/Menus.odc
  17. rm $targDir/Std/Mod/Tiles.odc
  18. rm $targDir/Std/Mod/Grids.odc
  19. rm $targDir/Std/Mod/Windows.odc
  20. rm $targDir/Std/Mod/Documents.odc
  21. rm $targDir/Win/Mod/Backends.odc
  22. rm $targDir/Std/Code/Menus.ocf
  23. rm $targDir/Std/Code/Tiles.ocf
  24. rm $targDir/Std/Code/Grids.ocf
  25. rm $targDir/Std/Code/Windows.ocf
  26. rm $targDir/Std/Code/Documents.ocf
  27. rm $targDir/Win/Code/Backends.ocf
  28. rm $targDir/Std/Sym/Menus.osf
  29. rm $targDir/Std/Sym/Tiles.osf
  30. rm $targDir/Std/Sym/Grids.osf
  31. rm $targDir/Std/Sym/Windows.osf
  32. rm $targDir/Std/Sym/Documents.osf
  33. rm $targDir/Win/Sym/Backends.osf
  34. rm $targDir/Std/Rsrc/Menus.odc
  35. mv $targDir/BlackBoxMDI.exe $targDir/BlackBox.exe