Sponsored Content
Top Forums UNIX for Dummies Questions & Answers epstopdf for multiple files using makefile Post 302402229 by wwoord on Tuesday 9th of March 2010 07:54:20 AM
Old 03-09-2010
Quote:
Originally Posted by Franklin52
You can also try:
Code:
ls *eps | xargs epstopdf

Thanks for the suggestion, it worked after I changed it a little bit to:
Code:
ls *eps | xargs -n1 epstopdf

looks a lot better than my my solution for sure!

Cheers

---------- Post updated at 01:54 PM ---------- Previous update was at 01:48 PM ----------

Quote:
Originally Posted by radoulov
Code:
for f in *eps; do
  epstopdf "$f"
done

With xargs the -n1 option and argument should be used in this case.
You also thanks for your solution, I just found out I should use the -n1 option with xargs. Your script should also work, but I can't put it in my makefile so then I should add an other file to my directory containing the script and then call it from the makefile. I was trying to avoid creating extra files.

Cheers
 

10 More Discussions You Might Find Interesting

1. Solaris

Makefile:57: *** multiple target patterns. Stop.

Hi, I am getting the following error while building on Solaris 64 , while I am trying to build. Error Snippet :- ---------------------- Makefile:57: *** multiple target patterns. Stop. make: Leaving directory `/work1/patch/vds6053sun64o/vobs/jvi' make: *** Error 2 make: Leaving directory... (0 Replies)
Discussion started by: nileshborate
0 Replies

2. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

3. Programming

Makefile: multiple target variable substitution

Greetings! Basically, I would like to properly handle this with gnu make: alltools: my_tool mysecond_tool mythird_tool etc_tool %_tool: dir1/%_tool.vf dir2/%_tool/subdir2/%_tool.ver <tab>@echo done %.vf: <tab>RUN_VF $* %.ver: <tab>RUN_VER $* So, if I were to do something like:... (0 Replies)
Discussion started by: Harlinator
0 Replies

4. Shell Programming and Scripting

Multiple script lines into a Makefile

Hi All I am creating a makefile and I want to do a clean section. In the clean section I would like to check if the file exists and then delete it. I always have an error 'unexpected end of file' What's wrong in it? Thanks msntn firstCpp: first.cpp g++ -o first first.cpp clean: ... (1 Reply)
Discussion started by: manustone
1 Replies

5. UNIX for Dummies Questions & Answers

epstopdf etc. commands

guys I would like to have more commands (as epstopdf) as this e.g. jpgtogif etc. how can I install them? where I need to have a look on it... I use MacOSX (1 Reply)
Discussion started by: c_lady
1 Replies

6. UNIX for Advanced & Expert Users

makefile head-scratcher: multiple targets in one go

Hi! I've got a build process where scripts create multiple targets from their sources. But here I'm running into a conceptual problem of GNU make: If one has multiple targets in a dependency, make applies the rules once for every target that is out of sync - which is correct for normal... (3 Replies)
Discussion started by: treczoks
3 Replies

7. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

8. Programming

Makefile for building multiple programs

I have the following part of a makefile and want to simplify it using rules rather than having to code the same two blocks when I need ti build another program. An having difficulty doing it all: 1dvel2 1dvel 2dvel ... (8 Replies)
Discussion started by: kristinu
8 Replies

9. Shell Programming and Scripting

Help: Makefile with multiple executables

I am trying to create executables for the following files Currently, I am making 9 different directories for for each. I would like to make 1 directory but everytime I try it does not work. CROSS_COMPILE?= # CROSS_COMPILE used to = arm-arago-linux-gnueabi... (1 Reply)
Discussion started by: bpetersen
1 Replies

10. Shell Programming and Scripting

Makefile with multiple executables

CROSS_COMPILE?= LIBDIR_APP_LOADER?=../../../../app_loader/lib INCDIR_APP_LOADER?=../../../../app_loader/include BINDIR?=../../bin CFLAGS+= -Wall -I$(INCDIR_APP_LOADER) -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -std=gnu99 LDFLAGS+=-L$(LIBDIR_APP_LOADER) -lprussdrv -lpthread OBJDIR=obj... (1 Reply)
Discussion started by: bpetersen
1 Replies
EPSTOPDF(1)						      General Commands Manual						       EPSTOPDF(1)

NAME
epstopdf, repstopdf - convert an EPS file to PDF SYNOPSIS
epstopdf [options] [epsfile] DESCRIPTION
epstopdf transforms the Encapsulated PostScript file epsfile (or standard input) so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the BoundingBox. This means that when Ghostscript renders it, the result needs no crop- ping, and the PDF MediaBox is correct. By default, the result is piped to Ghostscript and a PDF version written. If the bounding box is not right, of course, there are problems. OPTIONS
--outfile=file write result to file. If this option is not given, and --nogs or --filter is specified, write to standard output; otherwise, the default is to construct the output file name by replacing any extension in the input file with .pdf. --[no]compress use compression (default: on). --[no]debug write debugging info (default: off). --[no]embed embed fonts (default: on). --[no]exact scan ExactBoundingBox (default: off). --[no]filter read standard input and (unless --outfile is given) write standard output(default: off). --[no]gs run Ghostscript (default: on). With --nogs, output (to standard output by default) the PostScript that would normally be converted; that is, the input PostScript as modified by epstopdf. --[no]hires scan HiresBoundingBox (default: off). --gscmd=val pipe output to val (default: [gswin32c on Windows, else gs]) --res=dpi set image resolution (default: [use gs default]) --autorotate=val set AutoRotatePages (default: None); recognized val choices: None, All, PageByPage. For EPS files, PageByPage is equivalent to All. --restricted=val turn on restricted mode (default: [on for repstopdf, else off]); this forbids the use of --gscmd and imposes restrictions on the input and output file names according to the values of openin_any and openout_any (see the Web2c manual, http://tug.org/web2c). --help display help message and exit --version display version information and exit EXAMPLES
Examples which produce "test.pdf": epstopdf test.eps produce postscript | epstopdf --filter >test.pdf produce postscript | epstopdf -f -d -o=test.pdf Example: look for HiresBoundingBox and produce corrected PostScript: epstopdf -d --nogs --hires test.ps >testcorr.ps BUGS
The case of "%%BoundingBox: (atend)" when input is not seekable (e.g., from a pipe) is not supported. Report bugs in the program or this man page to tex-k@tug.org. When reporting bugs, please include an input file and the command line options specified, so the problem can be reproduced. SEE ALSO
gs(1), pdfcrop(1). The epstopdf LaTeX package, part of the oberdiek bundle, which automates running this script on the fly under TeX: http://ctan.org/pkg/epstopdf-pkg. AUTHOR
The script was originally written by Sebastian Rahtz, for Elsevier Science, with subsequent contributions from Thomas Esser, Gerben Wierda and many others. Currently maintained by Karl Berry. Man page originally written by Jim Van Zandt. epstopdf home page: http://tug.org/epstopdf. You may freely use, modify and/or distribute this file. 18 March 2010 EPSTOPDF(1)
All times are GMT -4. The time now is 01:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy