diff --git a/.gitignore b/.gitignore index ff87fff..7d5a505 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ vendor src/data/*.db* src/user-config.php +*.tar.bz2 +*.zip diff --git a/create_dist.sh b/create_dist.sh new file mode 100755 index 0000000..097ee13 --- /dev/null +++ b/create_dist.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Create release distribution archives +mkdir tmp +cd tmp || exit +cp -r ../src/* . +rm ./data/* || true +rm -rf ./vendor/bit-badger/pdo-document/.git* || true +rm -rf ./vendor/bit-badger/pdo-document/tests || true +rm -rf ./vendor/bit-badger/pdo-document/composer.lock || true +rm ./user-config.php || true +zip -q -r ../frc-"$1".zip * +tar cfj ../frc-"$1".tar.bz2 * +cd .. || exit +rm -rf tmp \ No newline at end of file