Make the new skin the default; normalize rules
[project-aon.git] / common / scripts / gbtoxhtml-less-simple.pl
index db9cc78..8948e65 100755 (executable)
@@ -21,6 +21,17 @@ my $ZIP        = '/usr/bin/zip';
 my $JAVA       = '/usr/bin/java';
 my $XALAN_JAR  = '/usr/share/java/xalan2.jar';
 
+# Check that all the binaries are were want them
+
+my @BINARIES;
+push @BINARIES, ($RXP, $CP, $MV, $ZIP, $JAVA, $XALAN_JAR, $RM);
+
+foreach (@BINARIES) {
+    if ( ! -e $_ ) {
+            die "$PROGRAM_NAME: Cannot find binary '".$_."'. Please install it.\n";
+    }
+}
+
 ###
 
 my $bookCode     = '';
@@ -54,7 +65,7 @@ while( $#ARGV > -1 ) {
 }
 
 if( $bookCode eq '' ) { die "Unspecified book code\n$USAGE"; }
-if( $metaFile eq '' ) { $metaFile = "$language/.publisher/rules/simple"; }
+if( $metaFile eq '' ) { $metaFile = "$language/.publisher/rules/dever"; }
 if( $bookXML eq '' ) { $bookXML = "$language/xml/$bookCode.xml"; }
 if( $xhtmlXSL eq '' ) { die "Unspecified XSL transformation file\n$USAGE"; }