Skip to content

Commit

Permalink
Merge pull request #1067 from avbop/master
Browse files Browse the repository at this point in the history
Fix gprocess to work on my system.
  • Loading branch information
rpspringuel committed Apr 15, 2016
2 parents b3dd0b9 + 87672ef commit d0f6494
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contrib/gprocess
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# -- use latin1 character set instead of utf8
# -- update macro and variable names (with "gre" prefix) as needed
# -- add 'redlines'
# --
# --
#
# v0.1
# Copyright (C) 2008 Richard Chonak <[email protected]>
#
#

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -50,7 +50,7 @@ if ($#ARGV < 0) {
my $GABCFILE = $ARGV[0];
my $GABCNAME = $GABCFILE;
$GABCNAME =~ s/.gabc//;
my $SCORENAME;
my $SCORENAME;
my $ANNOTATION;
my $REFERENCE;
my $OFFICEPART;
Expand Down Expand Up @@ -122,10 +122,10 @@ foreach (@TEMPLATELINES){
#### WRITE TEX WRAPPER FILE ####

open (TEXWRAP,">".$SCOREWRAPTEX) or die "Cannot write file $SCOREWRAPTEX\n";
print TEXWRAP @TEMPLATELINES;
print TEXWRAP @TEMPLATELINES;
close (TEXWRAP);

#### RUN GREGORIO, LATEX, AND KPDF ####
#### RUN LATEX ####
my $PDFFILE = $SCOREWRAPTEX;
$PDFFILE =~ s/tex$/pdf/;
my $AUXFILE = $SCOREWRAPTEX;
Expand All @@ -137,6 +137,8 @@ $GAUXFILE =~ s/tex$/gaux/;
# from a prior run
unlink $PDFFILE;

do_cmd("$TEXCOMPILER $SCOREWRAPTEX");
# Run twice to calculate line heights.
do_cmd("$TEXCOMPILER $SCOREWRAPTEX");
unlink $AUXFILE;
unlink $GAUXFILE;
Expand All @@ -157,7 +159,7 @@ sub do_subst {
sub do_cmd {
my $CMD = $_[0];
#debugging print "Doing command: \n $CMD\n\n";
system ($CMD) == 0
system ($CMD) == 0
or die "\n\nSystem command failed: $CMD : $?\n";
};

Expand All @@ -168,7 +170,6 @@ __END__
\documentclass[12pt, letterpaper]{article}
\usepackage{fullpage}
\usepackage[T1]{fontenc}
\usepackage[utf8]{luainputenc}
\usepackage{palatino}
\usepackage[autocompile,allowdeprecated=false]{gregoriotex}
\pagestyle{empty}
Expand All @@ -180,4 +181,3 @@ __END__
\end{document}

0 comments on commit d0f6494

Please sign in to comment.