14 lines
394 B
Bash
14 lines
394 B
Bash
|
#!/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
|