From 0590d7d3efe6e779d2f7138e2c814024e8c74864 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Sat, 25 Jan 2025 00:16:06 +0100 Subject: [PATCH] Compile adminer to "export" directory --- .gitignore | 2 +- bin/{export.sh => compile-set.sh} | 0 compile.php | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename bin/{export.sh => compile-set.sh} (100%) diff --git a/.gitignore b/.gitignore index 6ef3da91..b24714c6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ /**/compiled /vendor/ /composer.lock -/temp +/export/ diff --git a/bin/export.sh b/bin/compile-set.sh similarity index 100% rename from bin/export.sh rename to bin/compile-set.sh diff --git a/compile.php b/compile.php index 684e59d4..cffbf8d1 100755 --- a/compile.php +++ b/compile.php @@ -520,8 +520,8 @@ $file = preg_replace('~"\.\./vendor/vrana/jush/modules/(jush\.js)"~', $replace, $file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file); $file = php_shrink($file); -@mkdir("temp", 0777, true); -$filename = "temp/$project" +@mkdir("export", 0777, true); +$filename = "export/$project" . (is_dev_version() ? "" : "-$VERSION") . ($single_driver ? "-$single_driver" : "") . ($single_language ? "-$single_language" : "")