summaryrefslogtreecommitdiffstats
path: root/scripts/aurblup/aurblup-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/aurblup/aurblup-wrapper')
-rwxr-xr-xscripts/aurblup/aurblup-wrapper17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/aurblup/aurblup-wrapper b/scripts/aurblup/aurblup-wrapper
new file mode 100755
index 00000000..b056030d
--- /dev/null
+++ b/scripts/aurblup/aurblup-wrapper
@@ -0,0 +1,17 @@
+#!/usr/bin/php
+<?php
+$dir = $argv[1];
+
+if (empty($dir)) {
+ echo "Please specify AUR directory.\n";
+ exit;
+}
+
+set_include_path(get_include_path() . PATH_SEPARATOR . "$dir/lib");
+include("config.inc.php");
+
+exec($dir . "/../scripts/aurblup/aurblup " .
+ "-S /var/run/mysqld/mysqld.sock " .
+ "-u " . escapeshellarg(AUR_db_user) . " " .
+ "-p " . escapeshellarg(AUR_db_pass) . " " .
+ "-D " . escapeshellarg(AUR_db_name));