This commit is contained in:
Chris 2017-02-01 03:59:36 +01:00
parent 2dce9e4e8b
commit 989a8b831e
6 changed files with 31 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
define("APP_VERSION", "0.1-pre"); if (!defined('APP_VERSION')) define("APP_VERSION", "0.1-pre");
require_once __DIR__."/../vendor/autoload.php"; require_once __DIR__."/../vendor/autoload.php";
require_once __DIR__."/systemtest.php"; require_once __DIR__."/systemtest.php";

4
build/app.prop Normal file
View File

@ -0,0 +1,4 @@
# comment
APP_VERSION=0.2.x
APP_NAME=hotfix

10
build/gitprops.php Normal file
View File

@ -0,0 +1,10 @@
<?php
$git = trim(exec("git describe --tags"));
$git = explode("-",$git);
if (count($git)>1) {
$git = array_slice($git,0,2);
}
$git = join(".",$git);
echo "APP_VERSION={$git}\n";

View File

@ -18,6 +18,7 @@
"symfony/console": "^3.0", "symfony/console": "^3.0",
"symfony/yaml": "^3.0", "symfony/yaml": "^3.0",
"noccylabs/downloader": "@dev", "noccylabs/downloader": "@dev",
"symfony/expression-language": "^3.2" "symfony/expression-language": "^3.2",
"noccylabs/tinyphar": "^0.1.1"
} }
} }

View File

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
if [ ! -d ~/bin ]; then
echo "Creating ~/bin..."
mkdir ~/bin
fi
echo "Installing hotfix executable..." echo "Installing hotfix executable..."
cp hotfix ~/bin/hotfix cp hotfix ~/bin/hotfix
echo "Fixing permissions..." echo "Fixing permissions..."

View File

@ -1,5 +1,11 @@
This installer will put hotfix into the bin directory of the current user, ie. install it as ~/bin/hotfix. If the directory does not exist, it will be created. This will install hotfix into the bin directory of the current user (as ~/bin/hotfix). If
the directory does not exist, it will be created. Most Linux distributions will add the
Most Linux distributions will automatically add ~/bin to the path if it exists. If hotfix isn't callable from the command line after restarting your shell and/or rebooting, please consult the documentation. ~/bin directory to the path if it is found. If hotfix isn't callable from the command line
after restarting your shell and/or rebooting, please consult the documentation.
Some basic aliases will be installed into ~/.hotfix.conf if the file doesn't already exist. Some basic aliases will be installed into ~/.hotfix.conf if the file doesn't already exist.
Just remember to import the keys of the publishers whose hotfixes you are applying!
This installer was created on %{installer.date}