be sure skin dir has a js_common.xml file before we try to process it
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Dec 2010 20:20:48 +0000 (20:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Dec 2010 20:20:48 +0000 (20:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18922 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/autogen.sh

index e35eedd..8f165b7 100755 (executable)
@@ -132,6 +132,8 @@ cd $JSDIR;
 
 for skin in $(ls $SKINDIR); do
 
+    [ ! -f $SKINDIR/$skin/xml/common/js_common.xml ] && continue;
+
     files=$(sed -n -e "/<\!--START COMPRESSION-->/,/<\!--END COMPRESSION-->/  s/.*\?\/\([^']*\.js\)'.*/\1/p" $SKINDIR/$skin/xml/common/js_common.xml);
 
     if [ -n "$files" ]; then