Multiple fixes

* PDO shell improvements: .query command, -r and --db on command
  line to read commands from file or preselect database.
* Updated build scripts and readme
This commit is contained in:
2021-12-16 16:01:17 +01:00
parent 16753e1892
commit 0c7fc0196a
8 changed files with 126 additions and 59 deletions

View File

@@ -1,5 +1,10 @@
#!/bin/bash
if [ ! -f spark.phar ]; then
echo "error: No spark.phar has been built yet?"
exit 1
fi
VERSION="$(git describe --tags)"
PATH="$PWD/tools:$PATH"
@@ -16,9 +21,6 @@ echo " DESTINATION=$DESTINATION"
echo "* Preparing release direcory"
mkdir -p $DESTINATION
echo "* Building phar archive"
pharlite &>/dev/null
echo "* Copying files to release directory"
cp spark.phar $DESTINATION/spark.phar
cp README.md $DESTINATION/README.md

5
.spark/build/phar.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo "* Building phar archive"
pharlite &>/dev/null

View File

@@ -1,5 +1,13 @@
#!/bin/bash
if [ ! -d .git ]; then
if [ ! -f src/version ]; then
echo -e "<?php define(\"APP_VERSION\", \"unknown\");" > src/version
echo -e "* Version: \e[1munknown\e[0m"
fi
exit 0
fi
VERSION="$(git describe --tags)"
if [ -z "$VERSION" ]; then