X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fgbtoxhtml-less-simple.pl;h=8948e65f08143646721fd2ebfd8bcb77765913db;hp=db9cc78665a9c8ae3edea3ed333191c5e1edc2e4;hb=f90cf1eea570aacdee9c831c498ad35aef0768c4;hpb=f4bdee5083ca9a72713637e1e979aa183e06faea diff --git a/common/scripts/gbtoxhtml-less-simple.pl b/common/scripts/gbtoxhtml-less-simple.pl index db9cc78..8948e65 100755 --- a/common/scripts/gbtoxhtml-less-simple.pl +++ b/common/scripts/gbtoxhtml-less-simple.pl @@ -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"; }