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.
 
 
 
 
 
 

31 rivejä
739 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. # verification completed
  9. CWD="$(pwd)"
  10. cd webextension
  11. VERSION="$(git describe --abbrev=0 --tags)"
  12. git archive -o webextension.zip master
  13. mv webextension.zip /tmp
  14. cd ../pure/
  15. git archive -o pure.zip master
  16. mv pure.zip /tmp
  17. cd /tmp
  18. mkdir LessPass
  19. mv pure.zip LessPass/
  20. mv webextension.zip LessPass/
  21. cd LessPass/
  22. unzip pure.zip -d pure
  23. unzip webextension.zip -d webextension
  24. rm pure.zip webextension.zip
  25. zip -r LessPass-src-$VERSION.zip pure webextension
  26. mv LessPass-src-$VERSION.zip ~/Desktop/
  27. cd $CWD
  28. rm -rf /tmp/LessPass