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.

14 lines
389 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. cd target/build/
  10. echo "creating $PACKAGETAR in $TARGET"
  11. tar -zcvf $TARGET/$PACKAGETAR .
  12. echo "creating $PACKAGEZIP in $TARGET"
  13. zip -r $TARGET/$PACKAGEZIP ./*