This commit is contained in:
GZod01 2025-02-10 13:34:24 +01:00
parent f3e10d414c
commit 1cba84952a
5 changed files with 13 additions and 5 deletions

5
bin/gammaphp Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/php
<?php
echo "call from here";
require "../src/gamma.php";

1
build_command.sh Normal file
View file

@ -0,0 +1 @@
php -d phar.readonly=off /usr/local/bin/phar-composer build

View file

@ -16,5 +16,6 @@
"name": "GZod01",
"email": "gzod01@gzod01.fr"
}
]
],
"bin":["bin/gammaphp"]
}

BIN
gammaphp.phar Executable file

Binary file not shown.

9
src/gammaphp → src/gamma.php Executable file → Normal file
View file

@ -1,5 +1,5 @@
#!/usr/bin/env php
<?php
require "../vendor/autoload.php";
function get_opts() {
$opts = array();
foreach(is_string($_SERVER["argv"])?explode(" ",$_SERVER["argv"]):$_SERVER["argv"] as $k => $a){
@ -25,9 +25,9 @@ if (isset($argv[1])) {
case "new":
newsite();
break;
case "help":
help();
break;
case "help":
help();
break;
default:
break;
}
@ -190,3 +190,4 @@ function createFiles($basepath, $staticmode = false)
file_put_contents($publishpath . "sitemap.xml", $finalsitemap);
}