maintainer-make-bundle-o.sh 882 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # This script is only for Wekan maintainer to
  3. # convert x64 bundle to ppc64le bundle.
  4. # 1) Check that there is only one parameter
  5. # of Wekan version number
  6. if [ $# -ne 1 ]
  7. then
  8. echo "Syntax with Wekan version number:"
  9. echo " ./maintainer-make-bundle-o.sh 5.10"
  10. exit 1
  11. fi
  12. # 2) Build bundle
  13. cd /home/ubuntu
  14. rm -rf bundle
  15. #wget https://releases.wekan.team/wekan-$1.zip
  16. unzip wekan-$1.zip
  17. cd /home/ubuntu/bundle/programs/server
  18. chmod u+w *.json
  19. cd /home/ubuntu/bundle/programs/server/node_modules/fibers
  20. node build.js
  21. cd /home/ubuntu
  22. #cp -pR /home/ubuntu/node-fibers/bin/linux-ppc64-72-glibc bundle/programs/server/node_modules/fibers/bin/
  23. cd bundle
  24. find . -type d -name '*-garbage*' | xargs rm -rf
  25. find . -name '*phantom*' | xargs rm -rf
  26. find . -name '.*.swp' | xargs rm -f
  27. find . -name '*.swp' | xargs rm -f
  28. cd ..
  29. zip -r wekan-$1-ppc64le.zip bundle