/[escript]/trunk/scripts/finley_wrapper_writer.sh
ViewVC logotype

Annotation of /trunk/scripts/finley_wrapper_writer.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1912 - (hide annotations)
Thu Oct 23 05:08:31 2008 UTC (11 years, 9 months ago) by ksteube
File MIME type: application/x-sh
File size: 379 byte(s)
Finished wrapper script by setting PATH.

The wrapper script reproduces the environment of the person who built
the software + values specified in his hostname_options.py file.  A
user can run a python script without setting any environment variables
or loading any SGI modules.

1 ksteube 1756 #!/bin/sh
2    
3     # Create the finley wrapper script bin/finleypython
4     # by substituting @@VAR@@ for an env variable $VAR
5    
6     PYTHON_CMD=`type python | sed -e 's/.* //'`
7    
8     sed \
9     -e "s%@@ESCRIPT_ROOT@@%$ESCRIPT_ROOT%" \
10     -e "s%@@LD_LIBRARY_PATH@@%$LD_LIBRARY_PATH%" \
11     -e "s%@@PYTHONPATH@@%$PYTHONPATH%" \
12     -e "s%@@PYTHON_CMD@@%$PYTHON_CMD%" \
13 ksteube 1912 -e "s%@@PATH@@%$PATH%" \
14 ksteube 1756

  ViewVC Help
Powered by ViewVC 1.1.26