File: make_openwin.sh

package info (click to toggle)
moxftp 2.2-18.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,160 kB
  • ctags: 3,837
  • sloc: ansic: 43,420; makefile: 353; perl: 262; sh: 192
file content (27 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh
if [ "X$OPENWINHOME" = "X" ]; then
     OPENWINHOME=/usr/openwin
     export OPENWINHOME
fi
if [ "X$XFILESEARCHPATH" = "X" ]; then
     XFILESEARCHPATH=$OPENWINHOME/lib/%T/%N%S
     export  XFILESEARCHPATH
fi
LD_LIBRARY_PATH=$OPENWINHOME/lib
export LD_LIBRARY_PATH
TOP=`pwd`
PATH=$TOP/imake:$PATH
export PATH
echo "#define ConfigDir $TOP/imake"      >imake/ConfigDir
echo "#define ProjectRoot  $OPENWINHOME" >>imake/ConfigDir
echo "#define LibDir $OPENWINHOME/lib"   >>imake/ConfigDir
echo "#define IncRoot $OPENWINHOME/include" >>imake/ConfigDir
echo "#define OwSearchPath  $XFILESEARCHPATH" >>imake/ConfigDir 
cd imake
make -f Makefile.ini clean
make -f Makefile.ini 
cd ..
CONFIG=$TOP/imake
export CONFIG
imake/xmkmf
make World