]> git.pld-linux.org Git - packages/bbgallery.git/commitdiff
- CONFIG_DIR support
authorjuandon <witekfl@pld-linux.org>
Sun, 23 Mar 2003 17:12:41 +0000 (17:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bbgallery-home_etc.patch -> 1.1

bbgallery-home_etc.patch [new file with mode: 0644]

diff --git a/bbgallery-home_etc.patch b/bbgallery-home_etc.patch
new file mode 100644 (file)
index 0000000..4437eb8
--- /dev/null
@@ -0,0 +1,21 @@
+diff -Nru bbgallery-1.1.0/mkgallery.pl bbgallery-1.1.0.new/mkgallery.pl
+--- bbgallery-1.1.0/mkgallery.pl       Mon Jun 10 00:36:06 2002
++++ bbgallery-1.1.0.new/mkgallery.pl   Sun Mar 23 15:21:01 2003
+@@ -590,9 +590,14 @@
+     my %c;
+     # check for global config file
+-    if ( -f "$ENV{HOME}/.bbgallery" ) {
+-      load_config (  \%P, "$ENV{HOME}/.bbgallery" );
+-    }
++      if ("$ENV{CONFIG_DIR}") {
++        if ( -f "$ENV{CONFIG_DIR}/bbgallery" ) {
++          load_config (  \%P, "$ENV{CONFIG_DIR}/bbgallery" );
++        }
++    } else {
++        if ( -f "$ENV{HOME}/.bbgallery" ) {
++          load_config (  \%P, "$ENV{HOME}/.bbgallery" );
++        }
+     # config file in CWD?
+     if ( -f ".bbgallery" ) {
This page took 0.056934 seconds and 4 git commands to generate.