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.

19 lines
526 B

  1. #!/bin/bash
  2. #Getting variables that are produced by the script
  3. VERSION=$(head -1 ./version.info)
  4. NAME=$(head -1 ./name.info)
  5. PACKAGENAME=$NAME-$VERSION
  6. PACKAGETAR=$PACKAGENAME.tar.gz
  7. PACKAGEZIP=$PACKAGENAME.zip
  8. TARGET=$PWD/target
  9. #Packaging Jar Distributable
  10. cd target/release/
  11. echo "creating $PACKAGETAR in $TARGET"
  12. tar -zcvf $TARGET/$PACKAGETAR .
  13. echo "creating $PACKAGEZIP in $TARGET"
  14. zip -r $TARGET/$PACKAGEZIP ./*
  15. #Removing prebuilt jar in target
  16. rm $TARGET/*.jar
  17. #Copying Jar to target for archiving
  18. cp ./*.jar $TARGET