git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <lirion _ lirion.de> 2015-12-04 02:55:50 +0100
committerHarald Pfeiffer <lirion _ lirion.de> 2015-12-04 02:55:50 +0100
commit29dfcc23e8e6fe07b1e8b901dc0d11de3413c68f (patch)
tree90d8a5ff0a2f0f0d61f00ce1e7cee3bc3d3ae420
parentb49ae08e95f4d4d7d995166e7a2e6f287dc32d14 (diff)
downloadmp3dir2html-29dfcc23e8e6fe07b1e8b901dc0d11de3413c68f.tar.bz2
Config file inclusion. The quick and dirty method.
-rwxr-xr-xbin/mp3dir2html10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/mp3dir2html b/bin/mp3dir2html
index ce90f0b..c22509e 100755
--- a/bin/mp3dir2html
+++ b/bin/mp3dir2html
@@ -3,12 +3,16 @@
# Paste a file here that contains the HTML code to be placed _before_ the MP3 tag list.
DIRLISTHEAD="/etc/mp3dir2html/head.php"
-# Regular expression that is to be excluded in the final listing
-DIRLISTEX='^Susperia|^B.*hse.*nkelz'
-
+# Regular expression that is to be excluded in the final listing should exist as
+# DIRLISTEX='what.*ever|another.*one' in CONFFILE
+CONFFILE='/etc/mp3dir2html/mp3dir2html.conf'
# CORE SCRIPT FROM HERE. DON'T FIDDLE IF YOU DON'T KNOW WHAT YOU'RE DOING.
+DIRLISTEX="0x1fedbeef"
+[ -r "$CONFFILE" ] && . "$CONFFILE" || echo "WARNING: $CONFFILE not readable..."
+echo "$DIRLISTEX"
+
function m3l_help {
echo "Usage: $(basename $0) [options]";echo
echo "Options:"