Rich Shepard wrote: > On Sat, 21 Jan 2012, Ken Stephens wrote: > >> On the first line put ./configure \ >> With all you options below. >> Then execute it with a tcsh or bash YMMV: bash my_configure.sh. I usually >> put this file in the src directory of the application I am compiling. > > Ken, > > I have a 6-line configuration-options.txt file with continuation > backslashes at the end of the first 5 lines. Rather than typing them > one-by-one I copy each one to the vt in which I'm building the app. I'd like > to re-write the options file to a single long line and pass that to the > command line. Russell's idea may well work.
Seems like xargs would be the appropriate tool. xargs ./configure < configuration-options.txt I don't think you would need the backslashes in your options file either. I haven't tried it with configure, but I just tried the following and it worked as expected. galens@toto:tmp$ cat ls_args -l -r -t galens@toto:tmp$ xargs ls < ls_args total 4 -rw-rw-r-- 1 galens galens 9 Jan 21 14:05 ls_args -rw-rw-r-- 1 galens galens 0 Jan 21 14:09 one -rw-rw-r-- 1 galens galens 0 Jan 21 14:09 two -rw-rw-r-- 1 galens galens 0 Jan 21 14:10 three galen -- Galen Seitz [email protected] _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
