ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/makeall
(Generate patch)

Comparing ray/makeall (file contents):
Revision 1.19 by greg, Tue Aug 9 21:21:14 2005 UTC vs.
Revision 1.28 by greg, Fri Jun 29 16:18:02 2012 UTC

# Line 11 | Line 11 | if ( $#argv < 1 ) then
11   endif
12   if ( "$1" == library ) then
13          source installib
14 <        cp -f src/*/*.{cal,tab,hex} $ldir
14 >        cp -f src/*/*.{cal,tab,hex,dat} $ldir
15          echo ""
16          echo "Set the environment variable RAYPATH=.:$ldir"
17          echo 'For C-shell users, put the following into ~/.cshrc'
# Line 65 | Line 65 | if ( ! -d $idir ) then
65                  goto again1
66          endif
67   endif
68 if ( ! -d $idir/dev ) then
69        mkdir $idir/dev
70        if ( $status ) then
71                echo "Cannot create subdirectory, please reenter"
72                goto again1
73        endif
74 endif
68   set inpath=0
69   foreach i ( $path )
70          if ( "$i" == "$idir" ) then
# Line 84 | Line 77 | if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then
77          goto gotrmake
78   endif
79   set newrmake
80 < more src/common/copyright.h
80 > more License.txt
81   echo -n "Do you understand and accept the terms of this agreement [n]? "
82   set ans="$<"
83   if ( "$ans" !~ [yY]* ) exit
# Line 100 | Line 93 | cat << _EOF_
93   Please select your system type from the following list:
94  
95          1)      Sun Solaris
96 <        2)      HP workstation
97 <        3)      Silicon Graphics
98 <        4)      AIX (RS/6000)
99 <        5)      BSDI BSD/386
100 <        6)      Linux
108 <        7)      MacOS X
109 <        8)      FreeBSD
110 <        9)      Cygwin
111 <        10)     Other
96 >        2)      Linux
97 >        3)      MacOS X
98 >        4)      FreeBSD
99 >        5)      Cygwin
100 >        6)      Other
101  
102   _EOF_
103   echo -n "Choice? "
# Line 117 | Line 106 | switch ("$arch")
106   case 1:                 # SPARC Station
107          set arch=sun
108          set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO"
120        set opt="-O -DSPEED=80"
121        set compat="strcmp.o"
122        breaksw
123 case 2:                 # HP workstation
124        set mach=""
125        set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE"
126        set compat="strcmp.o"
127        set arch=hpux
128        breaksw
129 case 3:                 # Silicon Graphics
130        set arch=sgi
131        switch (`uname -r`)
132        case 3.*:
133                set mach="-noprototypes"
134                set opt="-O -DSPEED=80"
135                set special="sgi"
136                set compat="strcmp.o"
137                breaksw
138        case 4.*:
139                set mach=""
140                set opt="-O2 -DSPEED=100"
141                set compat="strcmp.o"
142                set extras='"MLIB=-lfastm -lm"'
143                breaksw
144        default:        # 5.x or later
145                ln -s `which wish` $idir/wish4.0
146                set path=($idir $path)
147                set mach="-w"
148                set opt="-O2 -DSPEED=200"
149                set special="ogl"
150                set compat="strcmp.o"
151                breaksw
152        endsw
153        breaksw
154 case 4:                 # AIX
109          set opt="-O"
110 <        set compat="erf.o strcmp.o"
157 <        set arch=PowerPC
110 >        set compat="strcmp.o timegm.o"
111          breaksw
112 < case 5:                 # BSDI BSD/386
160 <        set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include"
161 <        set opt="-O -DSPEED=100"
162 <        set arch=IBMPC
163 <        set compat="erf.o strcmp.o"
164 <        breaksw
165 < case 6:                 # Linux
112 > case 2:                 # Linux
113          set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO"
114 <        set opt="-O2 -DSPEED=200"
114 >        set opt="-O2"
115          set arch=IBMPC
116          set compat="erf.o"
117          set extras=CC=gcc
118          breaksw
119 < case 7:                 # MacOS X
119 > case 3:                 # MacOS X
120          set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
121 <        set opt="-O2 -DSPEED=200"
122 <        set arch=PowerPC
123 <        set extras="CC=cc CONFIGURE_ARCH=powerpc"
121 >        set opt="-O2"
122 >        set arch=Intel
123 >        set extras="CC=cc CONFIGURE_ARCH=i386"
124          set special="ogl"
125          breaksw
126 < case 8:                 # FreeBSD
126 > case 4:                 # FreeBSD
127          set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib"
128 <        set opt="-O -DSPEED=200"
128 >        set opt="-O"
129          set compat="erf.o"
130          set extras='CC=cc MLIB="-lcompat -lm"'
131          set arch=IBMPC
132          breaksw
133 < case 9:                 # Cygwin
133 > case 5:                 # Cygwin
134          set mach="-Dfreebsd -L/usr/lib -L/usr/X11R6/lib -I/usr/include/X11 -I/usr/X11R6/include -DNOSTEREO"
135 <        set opt="-O2 -DSPEED=200"
135 >        set opt="-O2"
136          set arch=IBMPC
137          set compat="erf.o"
138          set extras="CC=gcc"
139          set special="ogl"
140          set esuffix=".exe"
141          breaksw
142 < case 10:                        # Other
142 > case 6:                 # Other
143          set opt="-O"
144          set compat="erf.o strcmp.o"
145          echo -n "Are you using the GNU C compiler [n]? "
146          if ( "$<" =~ [yY]* ) then
147                  set extras="CC=gcc"
148 +        else
149 +                set compat="$compat timegm.o"
150          endif
151          set arch=other
152          breaksw

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines