Add distro create script

This commit is contained in:
Daniel J. Summers 2024-06-09 21:27:49 -04:00
parent 3dc314b2e3
commit 08fd589481
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
vendor
src/data/*.db*
src/user-config.php
*.tar.bz2
*.zip

14
create_dist.sh Executable file
View File

@ -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