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.

13 lines
377 B

  1. #Getting variables that are produced by the script
  2. VERSION=$(head -1 ./version.info)
  3. NAME=$(head -1 ./name.info)
  4. PACKAGENAME=$NAME-$VERSION
  5. PACKAGETAR=$PACKAGENAME.tar.gz
  6. PACKAGEZIP=$PACKAGENAME.zip
  7. TARGET=$PWD/target
  8. cd target/build/
  9. echo "creating $PACKAGETAR in $TARGET"
  10. tar -zcvf $TARGET/$PACKAGETAR .
  11. echo "creating $PACKAGEZIP in $TARGET"
  12. zip -r $TARGET/$PACKAGEZIP ./*