You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
762 B

  1. #!/usr/bin/env bash
  2. # context verification
  3. if [ ! -f README.md ]; then
  4. echo "You seems to be in the wrong directory"
  5. echo "Execute this script from the root of LessPass with ./scripts/${0##*/}"
  6. exit 1
  7. fi
  8. bash ./scripts/check-status.sh
  9. if [ "$?" == "1" ];then exit 1;fi
  10. # verification completed
  11. function commit-with-message {
  12. git add .
  13. git commit -m 'Adding the lastest version of lesspass-pure'
  14. git push --tags origin master
  15. }
  16. function cmd {
  17. cd $1
  18. rm -rf package-lock.json node_modules
  19. npm install
  20. npm install --save lesspass-pure
  21. npm run build
  22. commit-with-message
  23. cd ..
  24. }
  25. submodules="frontend cozy desktop webextension"
  26. for submodule in ${submodules}
  27. do
  28. cmd ${submodule} &
  29. done
  30. wait
  31. commit-with-message