[Fink-devel] Fink script tip

2003-01-31 Thread Ben Hines
Run your in-line fink scripts with -ex:

CompileScript: 
#!/bin/sh -ex
export CCACHE_DISABLE=1
	rm LIBLINK/*
	make all PREFIX=%p LDFLAGS=-L%p/lib MOTIF_LIBPATH=%p/lib/libXm.3.dylib 
LIBDIR=%p/lib LIBPATH=-LLIBLINK -L%p/lib 
XINCLUDES=-I/usr/X11R6/include -I%p/include/ CFLAGS=-DNDEBUG



It makes debugging much easier.

- The -e makes it fail if one of the commands fails. (supposed to, 
havent tried it :)
- The -x makes it echo the commands as it performs them, like:


+ export CCACHE_DISABLE=1
+ CCACHE_DISABLE=1
+ rm LIBLINK/LIBLINK LIBLINK/libARBDB.a LIBLINK/libARBDB.sl 
LIBLINK/libARBDB.so LIBLINK/libARBDB.so.2.0 LIBLINK/libARBDBPP.a 
LIBLINK/libARBDBPP.sl LIBLINK/libARBDBPP.so LIBLINK/libARBDBPP.so.2.0 
LIBLINK/libARBDO.a LIBLINK/libARBDO.sl LIBLINK/libARBDO.so 
LIBLINK/libARBDO.so.2.0 LIBLINK/libAW.a LIBLINK/libAW.sl 
LIBLINK/libAW.so LIBLINK/libAW.so.2.0 LIBLINK/libAWT.a 
LIBLINK/libAWT.sl LIBLINK/libAWT.so LIBLINK/libAWT.so.2.0 
LIBLINK/libXm.a LIBLINK/libXm.sl LIBLINK/libXm.so.1.1 
LIBLINK/libXm.so.1.2 LIBLINK/libXm.so.2
+ make all PREFIX=/sw LDFLAGS=-L/sw/lib 
MOTIF_LIBPATH=/sw/lib/libXm.3.dylib LIBDIR=/sw/lib 'LIBPATH=-LLIBLINK 
-L/sw/lib' 'XINCLUDES=-I/usr/X11R6/include -I/sw/include/' 
CFLAGS=-DNDEBUG

-Ben



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Fink script tip

2003-01-31 Thread Carsten
I know this is a stupid question about your (cool!) hint, please 
forgive me...

Should new info files prepend #!/bin/sh at the beginning of scripts 
or is it optional? (and only for debugging)

Carsten

On Friday, January 31, 2003, at 07:47  pm, Ben Hines wrote:

Run your in-line fink scripts with -ex:

CompileScript: 
#!/bin/sh -ex
export CCACHE_DISABLE=1
	rm LIBLINK/*
	make all PREFIX=%p LDFLAGS=-L%p/lib 
MOTIF_LIBPATH=%p/lib/libXm.3.dylib LIBDIR=%p/lib LIBPATH=-LLIBLINK 
-L%p/lib XINCLUDES=-I/usr/X11R6/include -I%p/include/ 
CFLAGS=-DNDEBUG



It makes debugging much easier.

- The -e makes it fail if one of the commands fails. (supposed to, 
havent tried it :)
- The -x makes it echo the commands as it performs them



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel



Re: [Fink-devel] Fink script tip

2003-01-31 Thread David R. Morrison
If you start a script with #!/bin/sh, then the entire script is executed
as a shell script (and you can even execute it as perl or whatever you
like).  Without that beginning, the commands in the script are executed
one line at a time (which originally was the only method available).

  -- Dave


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel