[OS X TeX] bibtex8 TeXShop engine

Peter Dyballa Peter_Dyballa at Web.DE
Sun Oct 19 19:10:03 CEST 2008

Am 19.10.2008 um 16:06 schrieb Alex Hamann:

> #!/bin/tcsh
> set path= ($path /usr/texbin /usr/local/bin)
> bibtex8 --wolfgang "$1"
> but obviously the above code will run the command on the .tex file  
> not on .aux. Could anybody how to obtain the desired result?

You can use the basename command that's able to remove a file name's  
extension. In some ENGINE files it's use as:

	set basefname=`basename "$1" .tex`

Then you can use:

	bibtex8 --wolfgang "${basefname}.aux"

Mit friedvollen Grüßen


Das Militär ist eine Pflanze, die mensch sorgfältig pflegen muss,  
damit sie keine Früchte trägt.	(Jacques Tati)

More information about the macostex-archives mailing list