From 08fd5894814b4dce68e2732df0c10446f5951908 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sun, 9 Jun 2024 21:27:49 -0400 Subject: [PATCH] Add distro create script --- .gitignore | 2 ++ create_dist.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 create_dist.sh 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