Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (2b7eb9e9a9de5b282813c55372990b711b3a820d)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (2b7eb9e9a9de5b282813c55372990b711b3a820d)
  • Date: Sat, 14 May 2011 20:53:07 -0500

GIT changes to master cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

ward/functions | 2 +-
ward/global_variables | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2b7eb9e9a9de5b282813c55372990b711b3a820d
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

ward: fix path variable setting/naming in userland

Correct the WARD_PATH setting in the generic user-level commands
functions and global_variables.

Although all the ward-* commands are Cauldron-specific, these two
commands are not, and should be usable as-is. However, both functions
and global_variables depend on the notion of a defined API for
function/variable naming. The variable naming matches the general
practice for shell global variables (all capitals, with numbers
and underscores allowed), though is more specific in that numbers are
only allowed as suffixes. The function naming presumes that "library"
file names consist of the general name (the function "prefix", e.g.
cauldron_) preceded by "lib" (e.g. libcauldron). This isn't hard to
modify, and if there is interest I could even refactor it to offload the
naming pattern into a separate file or variable.

diff --git a/ward/functions b/ward/functions
index ee76121..d5348d2 100755
--- a/ward/functions
+++ b/ward/functions
@@ -16,7 +16,7 @@
##

#-------------------------------------------------------------------------------

-WARD_PATH="${DELINT_PATH:-$(dirname $0)}"
+WARD_PATH="${WARD_PATH:-$(dirname $0)}"

if ! . "$WARD_PATH/libward"
then
diff --git a/ward/global_variables b/ward/global_variables
index 4d32058..f40ba97 100755
--- a/ward/global_variables
+++ b/ward/global_variables
@@ -16,7 +16,7 @@
##

#-------------------------------------------------------------------------------

-WARD_PATH="${DELINT_PATH:-$(dirname $0)}"
+WARD_PATH="${WARD_PATH:-$(dirname $0)}"

if ! . "$WARD_PATH/libward"
then



  • [SM-Commit] GIT changes to master cauldron by Justin Boffemmyer (2b7eb9e9a9de5b282813c55372990b711b3a820d), Justin Boffemmyer, 05/14/2011

Archive powered by MHonArc 2.6.24.

Top of Page