summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-13 11:46:03 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-13 11:46:03 -0400
commit808b40dc534316a82b9c614f1d8438fd1b149074 (patch)
treeab382a0d37313aa17c44bf498c509ee2c76ebe46
parent1ba234a9b632234a524e180a4f5bb4e97e92de30 (diff)
move command-line scripts to their own dir
darcs-hash:20080813154603-84dde-fc1cf32ab5617c11b6cbe9ad084dac32b0db315a.gz
-rwxr-xr-xscripts/fixup_hashtags.php (renamed from fixup_hashtags.php)2
-rwxr-xr-xscripts/fixup_notices_rendered.php (renamed from fixup_notices_rendered.php)2
-rwxr-xr-xscripts/fixup_replies.php (renamed from fixup_replies.php)2
-rwxr-xr-xscripts/maildaemon.php (renamed from maildaemon.php)2
-rw-r--r--scripts/sitemap.php (renamed from sitemap.php)2
-rwxr-xr-xscripts/xmppdaemon.php (renamed from xmppdaemon.php)2
6 files changed, 6 insertions, 6 deletions
diff --git a/fixup_hashtags.php b/scripts/fixup_hashtags.php
index 04f50afdf..88f385798 100755
--- a/fixup_hashtags.php
+++ b/scripts/fixup_hashtags.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/fixup_notices_rendered.php b/scripts/fixup_notices_rendered.php
index 53f9b1b16..7b29f0d23 100755
--- a/fixup_notices_rendered.php
+++ b/scripts/fixup_notices_rendered.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/fixup_replies.php b/scripts/fixup_replies.php
index 51ecf7afa..6010e21d1 100755
--- a/fixup_replies.php
+++ b/scripts/fixup_replies.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/maildaemon.php b/scripts/maildaemon.php
index 0a96bfeb4..3d3b30951 100755
--- a/maildaemon.php
+++ b/scripts/maildaemon.php
@@ -24,7 +24,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/sitemap.php b/scripts/sitemap.php
index c35a382a0..fbfd14e19 100644
--- a/sitemap.php
+++ b/scripts/sitemap.php
@@ -1,6 +1,6 @@
<?php
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');
diff --git a/xmppdaemon.php b/scripts/xmppdaemon.php
index 37b349f58..43f2b6aae 100755
--- a/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -53,7 +53,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
exit();
}
-define('INSTALLDIR', dirname(__FILE__));
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
require_once(INSTALLDIR . '/lib/common.php');