#!/bin/tcsh -f #(ie run the tshell on this but don't read the .cshrc or .tcshrc) echo version = 1.00 of nartest 2010 Mar 10 # 2010 Mar 10, 1.00: origin # This script tests the Nucleic Acids Research sample file. # See: # http://alum.mit.edu/www/toms/latex.html # Dr. Thomas D. Schneider, Ph.D. # National Institutes of Health # schneidt@mail.nih.gov # toms@alum.mit.edu (permanent) # http://alum.mit.edu/www/toms (permanent) set name = nar-latex2010.zip set s = http://www.oxfordjournals.org/our_journals/nar/for_authors/$name if !(-f nar-latex2010.zip) then if (`wget|grep 'Command not found'` != '') then echo "Get the file" echo "$s" echo "by hand or set up wget:" echo "http://alum.mit.edu/www/toms/wget.html" exit endif wget $s if (-f $name) then unzip $name else echo unable to set up $name endif endif set originalpdf = NAR-sample-original.pdf set newpdf = NAR-sample.pdf echo protecting the original pdf file $originalpdf by moving it to $newpdf mv $newpdf $originalpdf latex NAR-sample.tex latex NAR-sample.tex dvips NAR-sample ps2pdf NAR-sample.ps open NAR-sample.pdf & echo ----- done nartest -----