Add makefile, cli options

This commit is contained in:
2024-10-05 16:34:49 +02:00
parent 62c78fa14c
commit eb09b4698f
3 changed files with 76 additions and 17 deletions

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: jsonedit.phar
jsonedit.phar:
echo "<?php return [ 'version' => \"v$(shell git describe --tags)\", 'builddate' => \"$(shell LC_ALL=C date)\" ];" > src/build.php \
&& box compile \
&& rm src/build.php \
&& mv bin/jsonedit.phar .