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:
@@ -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
5
.spark/build/phar.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "* Building phar archive"
|
||||
pharlite &>/dev/null
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user