mingw-release.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # eg. "2.90 debytecode master" "windows-x64 windows-x86" Stable Debytecode Unstable
  2. # $1: types e.g. "2.90 debytecode master"
  3. # $2: archs e.g. "windows-x64 windows-x86"
  4. # $3: update of first type e.g. "Stable"
  5. # $4: update of second type e.g. "Debytecode"
  6. # $5: update of third type e.g. "Unstable"
  7. # .. and so on.
  8. types="$1"
  9. archs="$2"
  10. #uploadurl="$3"
  11. shift
  12. shift
  13. MSYSTEM=MSYS
  14. . /etc/profile
  15. cd /mzx-build-workingdir
  16. mkdir -p uploads
  17. rm -rf releases-update
  18. cp -r releases releases-update
  19. pushd releases-update
  20. for T in $types
  21. do
  22. # Only handle types/architectures if their given directories actually exist.
  23. if [ -d "$T" ]; then
  24. pushd $T
  25. for A in $archs
  26. do
  27. if [ -d "$A" ]; then
  28. pushd $A
  29. /mzx-build-scripts/builddir-to-updatedir.sh &
  30. #/mingw-release-single.sh $T $A &
  31. popd
  32. fi
  33. done
  34. popd
  35. fi
  36. # Add each type to the updates file regardless of whether or not it was
  37. # processed. This way, individual release tags can be updated without
  38. # breaking other existing release tags.
  39. echo "Current-$1: $T" >> updates-uncompressed.txt
  40. shift
  41. done
  42. wait
  43. /mzx-build-scripts/releasedir-to-tar.sh
  44. popd