diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-11 17:19:30 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-11 17:19:30 (EDT) |
commit | 4409feb02b5d44600d270cd0e2ddd749ea9663cb (patch) | |
tree | b8255fa788bf3107d5945e7ca215716681e3447c | |
parent | 9d220efaa381e9ea46bb17ffb9d977253c5ef1b1 (diff) |
Add missing include guards to some library files.
-rw-r--r-- | lib/db.sh | 3 | ||||
-rw-r--r-- | lib/dir.sh | 3 | ||||
-rw-r--r-- | lib/garbage.sh | 3 | ||||
-rw-r--r-- | lib/include.sh | 3 | ||||
-rw-r--r-- | lib/index.sh | 3 | ||||
-rw-r--r-- | lib/remove.sh | 3 | ||||
-rw-r--r-- | lib/suite.sh | 3 |
7 files changed, 21 insertions, 0 deletions
@@ -17,6 +17,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/>. +[ "x${_DB_SM+set}" = 'xset' ] && return 0 +_DB_SM=1 + use dir # @@ -17,6 +17,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/>. +[ "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 <http://www.gnu.org/licenses/>. +[ "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 <http://www.gnu.org/licenses/>. +[ "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 <http://www.gnu.org/licenses/>. +[ "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 <http://www.gnu.org/licenses/>. +[ "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 <http://www.gnu.org/licenses/>. +[ "x${_SUITE_SM+set}" = 'xset' ] && return 0 +_SUITE_SM=1 + use db use dir use remove |