ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Convert Shell files to Batch files?
@ 2006-04-20 16:42 David Arnold
  2006-04-20 20:51 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2006-04-20 16:42 UTC (permalink / raw)


All,

Anyone know how to convert these shell files to batch files for a PC?

#! /bin/sh

for fig in section*figs.tex; do
echo "Processing file $fig (first run)";
texexec $fig > nul;
echo "Processing file $fig (second run)";
texexec $fig > nul;
done

#! /bin/sh

for figlib in figlibSection*.xml; do
echo "Processing file $figlib";
texexec --pdf --use=fig-make --mod=letter $figlib > nul;
done


#! /bin/sh

./makefigs
./makefiglibs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Convert Shell files to Batch files?
  2006-04-20 16:42 Convert Shell files to Batch files? David Arnold
@ 2006-04-20 20:51 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-04-20 20:51 UTC (permalink / raw)


David Arnold wrote:
> All,
>
> Anyone know how to convert these shell files to batch files for a PC?
>
> #! /bin/sh
>
> for fig in section*figs.tex; do
> echo "Processing file $fig (first run)";
> texexec $fig > nul;
> echo "Processing file $fig (second run)";
> texexec $fig > nul;
> done
>
>   
why two runs? texexec does this automatically

texexec sectionfigs*.tex


or use runtools.rb :

file: makefigs.rb

$job = Job.new

Dir.glob("section*figs.tex").each do |file|
     $job.execute_script("texexec #{file}")
end

# etc etc

runtools makefigs.rb


> #! /bin/sh
>
> for figlib in figlibSection*.xml; do
> echo "Processing file $figlib";
> texexec --pdf --use=fig-make --mod=letter $figlib > nul;
> done
>
>
> #! /bin/sh
>
> ./makefigs
> ./makefiglibs
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-20 20:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 16:42 Convert Shell files to Batch files? David Arnold
2006-04-20 20:51 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).