]> git.pld-linux.org Git - packages/bbgallery.git/commitdiff
- s/CONFIG_DIR/ETC_DIR/
authorjuandon <witekfl@pld-linux.org>
Mon, 7 Apr 2003 12:21:34 +0000 (12:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- s/home_etc/etc_dir/

Changed files:
    bbgallery-etc_dir.patch -> 1.1

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

diff --git a/bbgallery-etc_dir.patch b/bbgallery-etc_dir.patch
new file mode 100644 (file)
index 0000000..8d23e8f
--- /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{ETC_DIR}") {
++        if ( -f "$ENV{ETC_DIR}/bbgallery" ) {
++          load_config (  \%P, "$ENV{ETC_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.059777 seconds and 4 git commands to generate.