From 4409feb02b5d44600d270cd0e2ddd749ea9663cb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 11 Oct 2013 17:19:30 -0400 Subject: Add missing include guards to some library files. --- diff --git a/lib/db.sh b/lib/db.sh index 94c5837..6dc15fa 100644 --- a/lib/db.sh +++ b/lib/db.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_DB_SM+set}" = 'xset' ] && return 0 +_DB_SM=1 + use dir # diff --git a/lib/dir.sh b/lib/dir.sh index b72d786..0b866c0 100644 --- a/lib/dir.sh +++ b/lib/dir.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_DIR_SM+set}" = 'xset' ] && return 0 +_DIR_SM=1 + hash_name() { local name="${1}" diff --git a/lib/garbage.sh b/lib/garbage.sh index d5e35cd..d78c530 100644 --- a/lib/garbage.sh +++ b/lib/garbage.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_GARBAGE_SM+set}" = 'xset' ] && return 0 +_GARBAGE_SM=1 + use dir collect_garbage() diff --git a/lib/include.sh b/lib/include.sh index dab9e71..74ebcb9 100644 --- a/lib/include.sh +++ b/lib/include.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_INCLUDE_SM+set}" = 'xset' ] && return 0 +_INCLUDE_SM=1 + use control use db use locale diff --git a/lib/index.sh b/lib/index.sh index 3b3087f..4ff674c 100644 --- a/lib/index.sh +++ b/lib/index.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_INDEX_SM+set}" = 'xset' ] && return 0 +_INDEX_SM=1 + use dir feed_add_package() diff --git a/lib/remove.sh b/lib/remove.sh index ce25ead..25687b4 100644 --- a/lib/remove.sh +++ b/lib/remove.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_REMOVE_SM+set}" = 'xset' ] && return 0 +_REMOVE_SM=1 + use db remove_source_from_suite() diff --git a/lib/suite.sh b/lib/suite.sh index 1408c14..9a55809 100644 --- a/lib/suite.sh +++ b/lib/suite.sh @@ -17,6 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +[ "x${_SUITE_SM+set}" = 'xset' ] && return 0 +_SUITE_SM=1 + use db use dir use remove -- cgit v0.9.1