made BASE and XT environment vars easily overridable
authorChris Butler <chrisb@crustynet.org.uk>
Wed, 29 Jul 2009 17:04:52 +0000 (19:04 +0200)
committerChris Butler <chrisb@crustynet.org.uk>
Wed, 29 Jul 2009 17:04:52 +0000 (19:04 +0200)
tools/mh-xmltv-do-cvs
tools/mh-xmltv-do-release

index 9205176..0bc0420 100755 (executable)
@@ -1,8 +1,8 @@
-#!/bin/sh 
+#!/bin/bash 
 
-BASE=/home/mattias/nobackup/xmltv-tester
-XT=/home/mattias/development/xmltv-tester/tools
-CVS=:pserver:anonymous@xmltv.cvs.sourceforge.net:/cvsroot/xmltv
+BASE=${BASE:-/home/mattias/nobackup/xmltv-tester}
+XT=${XT:-/home/mattias/development/xmltv-tester/tools}
+CVS=${CVS:-:pserver:anonymous@xmltv.cvs.sourceforge.net:/cvsroot/xmltv}
 LASTWEEK=`date -d "last week" +%F`
 
 rm -rf $BASE/work/nightly
index 9f1c4a1..b4261be 100755 (executable)
@@ -1,9 +1,9 @@
-#!/bin/sh 
+#!/bin/bash 
 
 RELEASE=0.5.55
 
-BASE=/home/mattias/nobackup/xmltv-tester
-XT=/home/mattias/development/xmltv-tester/tools
+BASE=${BASE:-/home/mattias/nobackup/xmltv-tester}
+XT=${XT:-/home/mattias/development/xmltv-tester/tools}
 
 rm -rf $BASE/work/release
 mkdir -p $BASE/work/release