From 808b40dc534316a82b9c614f1d8438fd1b149074 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 13 Aug 2008 11:46:03 -0400 Subject: [PATCH] move command-line scripts to their own dir darcs-hash:20080813154603-84dde-fc1cf32ab5617c11b6cbe9ad084dac32b0db315a.gz --- fixup_hashtags.php => scripts/fixup_hashtags.php | 2 +- .../fixup_notices_rendered.php | 2 +- fixup_replies.php => scripts/fixup_replies.php | 2 +- maildaemon.php => scripts/maildaemon.php | 2 +- sitemap.php => scripts/sitemap.php | 2 +- xmppdaemon.php => scripts/xmppdaemon.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename fixup_hashtags.php => scripts/fixup_hashtags.php (96%) rename fixup_notices_rendered.php => scripts/fixup_notices_rendered.php (96%) rename fixup_replies.php => scripts/fixup_replies.php (95%) rename maildaemon.php => scripts/maildaemon.php (98%) rename sitemap.php => scripts/sitemap.php (99%) rename xmppdaemon.php => scripts/xmppdaemon.php (99%) diff --git a/fixup_hashtags.php b/scripts/fixup_hashtags.php similarity index 96% rename from fixup_hashtags.php rename to scripts/fixup_hashtags.php index 04f50afdf8..88f385798d 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 similarity index 96% rename from fixup_notices_rendered.php rename to scripts/fixup_notices_rendered.php index 53f9b1b166..7b29f0d235 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 similarity index 95% rename from fixup_replies.php rename to scripts/fixup_replies.php index 51ecf7afaa..6010e21d11 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 similarity index 98% rename from maildaemon.php rename to scripts/maildaemon.php index 0a96bfeb4d..3d3b309514 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 similarity index 99% rename from sitemap.php rename to scripts/sitemap.php index c35a382a01..fbfd14e199 100644 --- a/sitemap.php +++ b/scripts/sitemap.php @@ -1,6 +1,6 @@