release-x2.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. if [ $# -ne 2 ]
  3. then
  4. echo "Syntax with Wekan old and new version number:"
  5. echo " ./release.sh 5.10 5.11"
  6. exit 1
  7. fi
  8. echo "Release: x64"
  9. cd releases.wekan.team
  10. mv wekan-$1.zip /data2/old-releases/
  11. sha256sum wekan-$2.zip >> SHA256SUMS.txt
  12. mv SHA256SUMS.txt ../x64-SHA256SUMS.txt
  13. cat ../x64-SHA256SUMS.txt | grep -v wekan-$1.zip > SHA256SUMS.txt
  14. rm wekan-latest-x64.zip
  15. ln -s wekan-$1.zip wekan-latest-x64.zip
  16. cd ..
  17. echo "Release: arm64"
  18. cd releases.wekan.team/raspi3
  19. mv wekan-$1-arm64.zip /data2/old-releases/raspi3/
  20. sha256sum wekan-$2-arm64.zip >> SHA256SUMS.txt
  21. mv SHA256SUMS.txt ../../arm64-SHA256SUMS.txt
  22. cat ../../arm64-SHA256SUMS.txt | grep -v wekan-$1-arm64.zip > SHA256SUMS.txt
  23. rm wekan-latest-arm64.zip
  24. ln -s wekan-$1.zip wekan-latest-arm64.zip
  25. cd ../..
  26. echo "Release: s390x"
  27. cd releases.wekan.team/s390x
  28. mv wekan-$1-s390x.zip /data2/old-releases/s390x/
  29. sha256sum wekan-$2-s390x.zip >> SHA256SUMS.txt
  30. mv SHA256SUMS.txt ../../s390x-SHA256SUMS.txt
  31. cat ../../s390x-SHA256SUMS.txt | grep -v wekan-$1-s390x.zip > SHA256SUMS.txt
  32. rm wekan-latest-s390x.zip
  33. ln -s wekan-$1.zip wekan-latest-s390x.zip
  34. cd ../..
  35. echo "Release: ppc64le"
  36. cd releases.wekan.team/ppc64le
  37. mkdir -p /data2/old-releases/ppc64le
  38. mv wekan-$1-ppc64le.zip /data2/old-releases/ppc64le/
  39. sha256sum wekan-$2-ppc64le.zip >> SHA256SUMS.txt
  40. mv SHA256SUMS.txt ../../ppc64le-SHA256SUMS.txt
  41. cat ../../ppc64le-SHA256SUMS.txt | grep -v wekan-$1-ppc64le.zip > SHA256SUMS.txt
  42. rm wekan-latest-ppc64le.zip
  43. ln -s wekan-$1.zip wekan-latest-ppc64le.zip
  44. cd ../..