source: osc_snovis/trunk/obuild/release/UNIX/install@ 271

Last change on this file since 271 was 271, checked in by barrand, 19 years ago
  • Property svn:executable set to *
File size: 908 bytes
RevLine 
[271]1#!/bin/sh -f
2
3#set -x
4
5obuild_current=`pwd`
6
7obuild_from='="@@absolute_dir@@"'
8
9obuild_to='="'"${obuild_current}"'"'
10
11if test -e aida-setup.sh ; then
12 /bin/rm -f obuild_tmp
13 sed -e "s#${obuild_from}#${obuild_to}#g" aida-setup.sh > obuild_tmp
14 /bin/mv obuild_tmp aida-setup.sh
15 /bin/rm -f obuild_tmp
16fi
17
18if test -e aida-setup.csh ; then
19 /bin/rm -f obuild_tmp
20 sed -e "s#${obuild_from}#${obuild_to}#g" aida-setup.csh > obuild_tmp
21 /bin/mv obuild_tmp aida-setup.csh
22 /bin/rm -f obuild_tmp
23fi
24
25if test -e setup.sh ; then
26 /bin/rm -f obuild_tmp
27 sed -e "s#${obuild_from}#${obuild_to}#g" setup.sh > obuild_tmp
28 /bin/mv obuild_tmp setup.sh
29 /bin/rm -f obuild_tmp
30fi
31
32if test -e setup.csh ; then
33 /bin/rm -f obuild_tmp
34 sed -e "s#${obuild_from}#${obuild_to}#g" setup.csh > obuild_tmp
35 /bin/mv obuild_tmp setup.csh
36 /bin/rm -f obuild_tmp
37fi
38
39unset obuild_to
40unset obuild_from
41unset obuild_current
42
43
Note: See TracBrowser for help on using the repository browser.