]>
git.saurik.com Git - wxWidgets.git/blob - install/unix/setup/general/createall
5 if test "x$OS" = x
; then
6 echo "please set the environment variable OSTYPE "
7 echo "to a value appropriate for your system."
8 echo "to do so type: setenv OSTYPE `uname` for the csh, tcsh"
9 echo " export OSTYPE=`uname` for other shells"
15 for each
in $TMP_CONT; do
16 if test -d src
/$each ; then
17 SRC_DIR
="$SRC_DIR src/$each"
23 for each
in $TMP_CONT; do
24 if test -d samples
/$each ; then
25 SAMPLES_DIR
="$SAMPLES_DIR samples/$each"
31 for each
in $TMP_CONT; do
32 if test -d utils
/$each ; then
33 UTILS_DIR
="$UTILS_DIR utils/$each"
39 for each
in $TMP_CONT; do
40 if test -d user
/$each ; then
41 USER_DIR
="$USER_DIR user/$each"
45 ALL_DIR
="$SRC_DIR $SAMPLES_DIR $UTILS_DIR $USER_DIR"
47 echo Creating
for: $OS
50 if test ! -d install
/unix
/setup
/$OS; then
51 mkdir install
/unix
/setup
/$OS
54 SUBSTFILE
=install
/unix
/setup
/$OS/substit
56 # the substit file first
57 if test -f install
/unix
/setup
/substit
; then
58 cat install
/unix
/setup
/substit
| sed "s/*/@/g" > $SUBSTFILE;
59 rm -f install
/unix
/setup
/substit
61 # now the template file
62 cat install
/unix
/setup
/maketmpl.
in | sed -f $SUBSTFILE > install
/unix
/setup
/$OS/maketmpl
64 # now the config header file
65 #if test -f setup/wx_setup.h ; then
66 # cat setup/wx_setup.h > setup/$OS/wx_setup.h;
67 # rm -f setup/wx_setup.h
70 # create lib and bin directory
71 if test ! -d lib
; then
74 if test ! -d lib
/$OS; then
77 if test ! -d bin
; then
80 if test ! -d bin
/$OS; then
85 for each
in $ALL_DIR; do
87 # create Makefile in directory
88 if test -r $each/Makefile.
in ; then
90 if test ! -d $DIR; then
91 echo "Creating Directory: $DIR..."
94 echo "Creating: $DIR/Makefile..."
95 cat $each/Makefile.
in | sed -f $SUBSTFILE > $DIR/Makefile
96 (cd $DIR; make subdirs
> /dev
/null
;)