3 # Just grab dirbase/dir(s)
12 DIRCONTENTS="$DIRCONTENTS $each"
18 # Prefer subdir/src over subdir, use whichever available
23 for each in $DIRBASE/*
29 DIRCONTENTS="$DIRCONTENTS $each/src"
31 DIRCONTENTS="$DIRCONTENTS $each"
40 if test "x$OS" = x; then
41 echo "please set the environment variable OSTYPE "
42 echo "to a value appropriate for your system."
43 echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh"
44 echo " export OSTYPE=`uname` for other shells"
48 SRC_DIR=`readbase src src`
49 SAMPLES_DIR=`readbase2 samples`
50 UTILS_DIR=`readbase2 utils`
51 USER_DIR=`readbase2 user`
53 ALL_DIR="$SRC_DIR $SAMPLES_DIR $UTILS_DIR $USER_DIR"
55 echo Creating for: $OS
58 if test ! -d install/unix/setup/$OS; then
59 mkdir install/unix/setup/$OS
62 SUBSTFILE=install/unix/setup/$OS/substit
64 # the substit file first
65 if test -f install/unix/setup/substit ; then
66 cat install/unix/setup/substit | sed "s/*/@/g" > $SUBSTFILE;
67 rm -f install/unix/setup/substit
69 # now the template file
70 cat install/unix/setup/maketmpl.in | sed -f $SUBSTFILE > install/unix/setup/$OS/maketmpl
72 # now the config header file
73 #if test -f setup/wx_setup.h ; then
74 # cat setup/wx_setup.h > setup/$OS/wx_setup.h;
75 # rm -f setup/wx_setup.h
78 # create lib and bin directory
79 if test ! -d lib; then
82 if test ! -d lib/$OS; then
85 if test ! -d bin; then
88 if test ! -d bin/$OS; then
93 for each in $ALL_DIR; do
95 # create Makefile in directory
96 if test -r $each/Makefile.in ; then
98 if test ! -d $DIR; then
99 echo "Creating Directory: $DIR..."
102 echo "Creating: $DIR/Makefile..."
103 cat $each/Makefile.in | sed -f $SUBSTFILE > $DIR/Makefile
104 (cd $DIR; make subdirs > /dev/null;)