summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-01 04:38:05 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-01 04:38:05 (EDT)
commit748ae1c86e67df5be672dee7fa3b2fdc91b1e53b (patch)
treef5d7e610b4f2840d3a68b0f7f17f791b9e4f135a
parent23c9f268392bcb735337f1c2580824886c5981dd (diff)
Prevent double execution/inclusion.
-rw-r--r--lib/changelog.sh3
-rw-r--r--lib/locale.sh3
-rw-r--r--lib/messages.sh3
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 327cc2d..53cca58 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -19,6 +19,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+[ -n "${_OH_CHANGELOG_SH}" ] && return 0
+_OH_CHANGELOG_SH=true
+
. @@LIBDIR@@/messages
# Constant global parameters:
diff --git a/lib/locale.sh b/lib/locale.sh
index 8479c85..d30a684 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -19,6 +19,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+[ -n "${_OH_LOCALE_SH}" ] && return 0
+_OH_LOCALE_SH=true
+
oh_locale_set()
{
_locale="${1}"
diff --git a/lib/messages.sh b/lib/messages.sh
index b2d3a2a..7710b00 100644
--- a/lib/messages.sh
+++ b/lib/messages.sh
@@ -19,6 +19,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+[ -n "${_OH_MESSAGES_SH}" ] && return 0
+_OH_MESSAGES_SH=true
+
# TODO: Which of these should print to the standard error stream – just
# oh_error() and oh_warn()?