2 # N.B. make sure this really is a true Bourne-compatible shell.
4 # !!!! WARNING !!! THIS IS IN DEVELOPMENT AND HAS NOT BEEN
5 # TESTED. DO NOT USE YET!
6 # Use src/motif/makefile.unx directly instead, with the 'motif'
9 ###############################################################
10 # wxinstal -- wxWindows for Motif installation script. #
11 # Julian Smart, December 1998 #
12 # Usage: wxinstall [optional wxWindows target directory] #
13 # Note: this uses plain makefiles. You can also use the #
14 # configure system: see docs/motif/install.txt. #
15 ###############################################################
17 ########### Edit these variables for your system. #############
18 ########### ALSO edit wx/src/make.env once unarchived #########
22 if [ "$MYEDITOR" = "" ]
29 if [ "$MYPAGER" = "" ]
34 # wxWindows directory to install to
41 # Target (motif, xview)
44 # Archive prefix, dependent on version number
47 # Platform. 1 = generic platform
53 # PostScript viewer, if any
54 POSTSCRIPTVIEWER
=ghostview
56 # PostScript viewer, if any
62 if [ "$GUITARGET" = "motif" ]
67 # If you add platforms, you just need
68 # to adjust this number, and
69 # add environment variables
70 # for a description and the filename.
74 PLATFORM1
="Generic/Linux with gcc"
75 PLATFORMFILE1
="linux.env"
77 PLATFORM2
="Solaris with gcc"
78 PLATFORMFILE2
="sol_gcc.env"
80 PLATFORM3
="Solaris with Sun C++"
81 PLATFORMFILE3
="sol_sun.env"
83 PLATFORM4
="SunOS 4.x.x with gcc"
84 PLATFORMFILE4
="sunosgcc.env"
86 PLATFORM5
="FreeBSD with gcc"
87 PLATFORMFILE5
="freebsd.env"
89 PLATFORM6
="AIX with gcc"
90 PLATFORMFILE6
="aixgcc.env"
92 PLATFORM7
="AIX with CSet++"
93 PLATFORMFILE7
="aixcset.env"
95 PLATFORM8
="Data General"
96 PLATFORMFILE8
="datagen.env"
99 PLATFORMFILE9
="hp.env"
102 PLATFORMFILE10
="irix.env"
105 PLATFORMFILE11
="decosf.env"
108 PLATFORMFILE12
="vms.env"
112 if [ -f $CURRENTDIR/$ARCHIVE"gen.tar" ]
116 echo Making directory
$WXDIR
121 echo $WXDIR" cannot be created!"
123 echo Untarring
$CURRENTDIR/$ARCHIVE"*.tar."
124 echo Please be patient...
126 tar xf
$CURRENTDIR/$ARCHIVE"gen.tar"
127 tar xf
$CURRENTDIR/$ARCHIVE"mot.tar"
128 echo If you saw no errors
, untarring was successful.
131 echo $CURRENTDIR/$ARCHIVE"gen.tar" not found.
134 # Unarchive HTML documentation if found
135 if [ -f $CURRENTDIR/$ARCHIVE"htm.tar" ]
137 echo Untarring HTML documentation
$CURRENTDIR/$ARCHIVE"htm.tar."
138 echo Please be patient...
140 tar xf
$CURRENTDIR/$ARCHIVE"htm.tar"
143 # Unarchive PDF documentation if found
144 if [ -f $CURRENTDIR/$ARCHIVE"pdf.tar" ]
146 echo Untarring PDF documentation
$CURRENTDIR/$ARCHIVE"pdf.tar."
147 echo Please be patient...
149 tar xf
$CURRENTDIR/$ARCHIVE"pdf.tar"
157 if [ -f $CURRENTDIR/$ARCHIVE"gen.tgz" ]
159 echo Unarchiving
$CURRENTDIR/$ARCHIVE"gen.tgz"
160 gzip -c -d $CURRENTDIR/$ARCHIVE"gen.tgz" | tar xf
-
161 echo Unarchiving
$CURRENTDIR/$ARCHIVE"mot.tgz"
162 gzip -c -d $CURRENTDIR/$ARCHIVE"mot.tgz" | tar xf
-
164 # Optional: PDF documentation
165 if [ -f $CURRENTDIR/$ARCHIVE"pdf.tgz" ]
167 echo Unarchiving
$CURRENTDIR/$ARCHIVE"ps.tgz"
168 gzip -c -d $CURRENTDIR/$ARCHIVE"pdf.tgz" | tar xf
-
171 # Optional: HTML documentation
172 if [ -f $CURRENTDIR/$ARCHIVE"htm.tgz" ]
174 echo Unarchiving
$CURRENTDIR/$ARCHIVE"htm.tgz"
175 gzip -c -d $CURRENTDIR/$ARCHIVE"htm.tgz" | tar xf
-
179 echo $CURRENTDIR/$ARCHIVE"gen.tgz" not found. Please place
in the current directory.
186 if [ -f $CURRENTDIR/$ARCHIVE"gen.zip" ]
190 echo Making directory
$WXDIR
195 echo $WXDIR" cannot be created!"
197 echo Untarring
$CURRENTDIR/$ARCHIVE"*.zip."
198 echo Please be patient...
200 unzip -a -o $CURRENTDIR/$ARCHIVE"gen.zip"
201 unzip -a -o $CURRENTDIR/$ARCHIVE"mot.zip"
202 echo If you saw no errors
, unzipping was successful.
205 echo $CURRENTDIR/$ARCHIVE"gen.zip" not found.
208 # Unarchive HTML documentation if found
209 if [ -f $CURRENTDIR/$ARCHIVE"htm.zip" ]
211 echo Unzipping HTML documentation
$CURRENTDIR/$ARCHIVE"htm.zip."
212 echo Please be patient...
214 unzip -a -o $CURRENTDIR/$ARCHIVE"htm.zip"
217 # Unarchive PDF documentation if found
218 if [ -f $CURRENTDIR/$ARCHIVE"pdf.zip" ]
220 echo Unzipping PDF documentation
$CURRENTDIR/$ARCHIVE"pdf.zip."
221 echo Please be patient...
223 unzip -a -o $CURRENTDIR/$ARCHIVE"pdf.zip"
233 if [ -f $WXDIR/src
/make.env
]
236 echo "If the files are unarchived ok, you should edit the file"
237 echo $WXDIR"/src/make.env"
238 echo "since this sets many options for your wxWindows"
239 echo "compilation environment."
241 echo "Would you like to edit the file now? (y/n)"
246 $MYEDITOR $WXDIR/src
/make.env
248 echo Ok
, if you get compilation or link errors
in the installation
,
249 echo $WXDIR"/src/make.env is the first place to look."
251 echo "Press return to continue."
256 echo "Uh-oh, cannot find "$WXDIR"/src/make.env; probably you have not unarchived"
259 echo "Press return to continue."
264 install_from_archive
()
267 echo "Install from Archive"
268 echo "--------------------"
270 echo "1) Install from "$ARCHIVE"gen.zip, "$ARCHIVE"mot.zip"
271 echo " and "$ARCHIVE"htm.zip if present."
272 echo "2) Install from "$ARCHIVE"gen.tgz, "$ARCHIVE"mot.tgz"
273 echo " and "$ARCHIVE"htm.tgz if present."
278 if [ "$archans" = "1" ]
282 if [ "$archans" = "2" ]
290 if [ ! -d $WXDIR/src
]
292 echo "Source directory not found: please unarchive first."
293 echo Press
return to
continue.
297 echo Making the wxWindows main library. It will go
in
300 echo Please press RETURN to
continue, and
then make yourself a coffee.
303 if [ ! -d $WXDIR/lib
]
309 make -f makefile.unx
$GUITARGET 2>&1 | tee -a $CURRENTDIR/make.log
312 if [ -f $WXDIR/lib
/libwx
$GUISUFFIX".a" ]
315 echo "If you saw no errors, wxWindows was compiled. See the file make.log"
316 echo "for errors and warnings."
319 echo $WXDIR/lib
/libwx
$GUISUFFIX".a was not built."
320 echo "Please check make.env, and read install.txt and faq.txt/ps."
322 echo "Press return to continue."
329 ###############################################################
330 # Make peripheral components #
331 ###############################################################
335 if [ ! -d $WXDIR/utils
/wxtree
]
337 echo wxTree directory does not exist.
338 echo Press
return to
continue.
342 echo Making the wxTree library. It will go
in
343 echo $WXDIR/utils
/wxtree
/lib.
345 cd $WXDIR/utils
/wxtree
/src
346 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
349 echo "If you saw no errors, the wxTree library was compiled. See the file make.log"
350 echo "for errors and warnings."
356 if [ ! -d $WXDIR/utils
/wxgraph
]
358 echo wxGraph directory does not exist.
359 echo Press
return to
continue.
363 echo Making the wxGraph library. It will go
in
364 echo $WXDIR/utils
/wxgraph
/lib.
366 cd $WXDIR/utils
/wxgraph
/src
367 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
370 echo "If you saw no errors, the wxGraph library was compiled. See the file make.log"
371 echo "for errors and warnings."
377 if [ ! -d $WXDIR/utils
/colours
]
379 echo $WXDIR/utils
/colours directory does not exist.
380 echo Press
return to
continue.
384 echo Making the Colour sampler. It will go
in
385 echo $WXDIR/utils
/colours
387 cd $WXDIR/utils
/colours
388 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
391 echo "If you saw no errors, the Colour sampler was compiled. See the file make.log"
392 echo "for errors and warnings."
394 if [ -f $WXDIR/utils
/colours
/colours
$GUISUFFIX ]
396 echo "Run the Colour sampler? (y/n)"
401 $WXDIR/utils
/colours
/colours
$GUISUFFIX
409 if [ ! -d $WXDIR/utils
/wxhelp
]
411 echo wxHelp directory does not exist.
412 echo Press
return to
continue.
416 echo Making the wxHelp program. It will go
in
417 echo $WXDIR/utils
/wxhelp
/src.
419 cd $WXDIR/utils
/wxhelp
/src
420 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
423 echo "If you saw no errors, the wxHelp program was compiled. See the file make.log"
424 echo "for errors and warnings."
430 if [ ! -d $WXDIR/utils
/tex2rtf
]
432 echo Tex2RTF directory does not exist.
433 echo Press
return to
continue.
437 echo Making the Tex2RTF utility. It will go
in
438 echo $WXDIR/utils
/tex
2rtf
/src.
440 cd $WXDIR/utils
/tex
2rtf
/src
441 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
444 echo "If you saw no errors, the Tex2RTF program was compiled. See the file make.log"
445 echo "for errors and warnings."
449 ###############################################################
451 ###############################################################
456 echo Making the Controls sample. It will be made as
457 echo $WXDIR/samples
/controls
/controls
$GUISUFFIX
459 cd $WXDIR/samples
/constrols
460 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
463 echo "If you saw no errors, the Controls sample was compiled. See the file make.log"
464 echo "for errors and warnings."
470 echo Making the Minimal sample. It will be made as
471 echo $WXDIR/samples
/minimal
/minimal
$GUISUFFIX
473 cd $WXDIR/samples
/minimal
474 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
477 echo "If you saw no errors, the Minimal sample was compiled. See the file make.log"
478 echo "for errors and warnings."
484 echo Making the Mdi sample. It will be made as
485 echo $WXDIR/samples
/mdi
/mdi
$GUISUFFIX
487 cd $WXDIR/samples
/mdi
488 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
491 echo "If you saw no errors, the MDI sample was compiled. See the file make.log"
492 echo "for errors and warnings."
498 echo Making the Animate sample. It will be made as
499 echo $WXDIR/samples
/animate
/anim
$GUISUFFIX
501 cd $WXDIR/samples
/animate
502 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
505 echo "If you saw no errors, the Animate sample was compiled. See the file make.log"
506 echo "for errors and warnings."
512 echo Making the Fractal sample. It will be made as
513 echo $WXDIR/samples
/fractal
/fractal
$GUISUFFIX
515 cd $WXDIR/samples
/fractal
516 make -f makefile.unx
$GUITARGET 2>&1 | tee $CURRENTDIR/make.log
519 echo "If you saw no errors, the Fractal sample was compiled. See the file make.log"
520 echo "for errors and warnings."
523 make_all_periph_components
()
532 about_periph_components
()
535 echo "About the Peripheral Components"
536 echo "-------------------------------"
538 echo "These are libraries and programs that are considered useful"
539 echo "enough to put in the main wxWindows distribution."
541 echo wxTree A tree
-drawing library
, with sample
544 # echo wxGraph A node and arc graph-drawing library, with sample
547 # echo "Press return to continue"
550 # echo wxHelp The wxWindows on-line help program
554 # echo "Tex2RTF LaTeX->RTF, HTML converter"
557 echo "Press return to continue"
562 make_peripheral_components
()
565 while [ "$compoption" != "0" ]
568 echo "Peripheral Component Options"
569 echo "----------------------------"
570 echo " 1) Make wxTree layout library"
571 echo "10) Make all the above"
572 echo "----------------------------"
573 echo " ?) About these components"
574 echo "----------------------------"
579 if [ "$compoption" = "1" ]
583 if [ "$compoption" = "10" ]
585 make_all_periph_components
587 if [ "$compoption" = "?" ]
589 about_periph_components
597 echo "Note: compiling all samples is going to use up bags of disk space."
598 echo "Continue? (y/n)"
605 make -f makefile.unx all
$GUISUFFIX
612 while [ "$compoption" != "0" ]
615 echo "Sample compilation options"
616 echo "------------------------"
617 echo "1) Make Minimal sample"
618 echo "2) Make MDI sample
619 echo "3) Make all samples
"
620 echo "4) Run a sample
"
621 echo "------------------------"
626 if [ "$compoption" = "1" ]
630 if [ "$compoption" = "2" ]
634 if [ "$compoption" = "3" ]
638 if [ "$compoption" = "4" ]
645 # Find a platform filename, using 'arg' as input and output
649 1) arg=$PLATFORMFILE1;;
650 2) arg=$PLATFORMFILE2;;
651 3) arg=$PLATFORMFILE3;;
652 4) arg=$PLATFORMFILE4;;
653 5) arg=$PLATFORMFILE5;;
654 6) arg=$PLATFORMFILE6;;
655 7) arg=$PLATFORMFILE7;;
656 8) arg=$PLATFORMFILE8;;
657 9) arg=$PLATFORMFILE9;;
658 10) arg=$PLATFORMFILE10;;
659 11) arg=$PLATFORMFILE11;;
660 12) arg=$PLATFORMFILE12;;
661 13) arg=$PLATFORMFILE13;;
662 14) arg=$PLATFORMFILE14;;
663 15) arg=$PLATFORMFILE15;;
664 16) arg=$PLATFORMFILE16;;
665 17) arg=$PLATFORMFILE17;;
666 18) arg=$PLATFORMFILE18;;
667 19) arg=$PLATFORMFILE19;;
668 20) arg=$PLATFORMFILE20;;
673 platform_description()
685 10) arg=$PLATFORM10;;
686 11) arg=$PLATFORM11;;
687 12) arg=$PLATFORM12;;
688 13) arg=$PLATFORM13;;
689 14) arg=$PLATFORM14;;
690 15) arg=$PLATFORM15;;
691 16) arg=$PLATFORM16;;
692 17) arg=$PLATFORM17;;
693 18) arg=$PLATFORM18;;
694 19) arg=$PLATFORM19;;
695 20) arg=$PLATFORM20;;
700 ###############################################################
702 ###############################################################
707 echo "Select a platform
"
708 echo "----------------------------"
709 echo "Note
: this copies a
file from
$WXDIR/src
/makeenvs
"
710 echo "to
$WXDIR/src
/make.env. If you have
"
711 echo "restarted the installation
, the current option listed
"
712 echo "may not reflect the current
make.env.
"
714 echo "You may wish to edit a .env
file in $WXDIR/src
/makeenvs
"
715 echo "instead of src
/make.env
, which might be overwritten
in future
"
716 echo "installations.
"
718 echo "In any event
, a backup of
make.env is made
(make.bak
) before it is
"
721 echo "Please press
return to
continue.
"
726 while [ "$selectdone" = "0" ]
729 echo "Select a platform
"
730 echo "----------------------------"
734 while [ $i -le $PLATFORMCOUNT ]
740 if [ "$PLATFORM" = "$i" ]
744 echo " "$markit" "$i") "$plat
748 echo " e
) Edit the current src
/make.env
"
750 echo "Enter a choice
, return for default
: "
753 if [ "$compoption" = "e
" ]
755 $MYEDITOR $WXDIR/src/make.env
757 if [ "$compoption" != "" ]
767 if [ "$platfile" != "" ]
769 if [ ! -f $WXDIR"/src
/makeenvs
/"$platfile ]
771 echo "Sorry
, this platform is not catered
for yet.
"
772 echo "Try using the generic settings instead.
"
774 echo "Press
return to
continue.
"
779 cp -f $WXDIR/src/make.env $WXDIR/src/make.bak
780 cp -f $WXDIR/src/makeenvs/$platfile $WXDIR/src/make.env
790 ###############################################################
792 ###############################################################
796 if [ ! -f $WXDIR"/samples
/controls
/controls
"$GUISUFFIX ]
798 echo The Controls sample has not been compiled yet.
801 echo "Running
"$WXDIR"/samples
/controls
/controls
"$GUISUFFIX
803 cd $WXDIR"/samples
/controls
"
811 if [ ! -f $WXDIR"/samples
/minimal
/minimal
"$GUISUFFIX ]
813 echo The Minimal sample has not been compiled yet.
816 echo "Running
"$WXDIR"/samples
/minimal
/minimal
"$GUISUFFIX
818 cd $WXDIR"/samples
/minimal
"
826 if [ ! -f $WXDIR"/samples
/form
/form
"$GUISUFFIX ]
828 echo The Form sample has not been compiled yet.
831 echo "Running
"$WXDIR"/samples
/form
/form
"$GUISUFFIX
833 cd $WXDIR"/samples
/form
"
841 if [ ! -f $WXDIR"/samples
/animate
/anim
"$GUISUFFIX ]
843 echo The Animate sample has not been compiled yet.
846 echo "Running
"$WXDIR"/samples
/animate
/anim
"$GUISUFFIX
848 cd $WXDIR"/samples
/animate
"
856 if [ ! -f $WXDIR"/samples
/fractal
/fractal
"$GUISUFFIX ]
858 echo The Fractal sample has not been compiled yet.
861 echo "Running
"$WXDIR"/samples
/fractal
/fractal
"$GUISUFFIX
863 cd $WXDIR"/samples
/fractal
"
871 if [ ! -f $WXDIR"/samples
/ipc
/client
"$GUISUFFIX ]
873 echo The IPC samples have not been compiled yet.
876 echo "Running
"$WXDIR"/samples
/ipc
/client
"$GUISUFFIX,
877 echo " "$WXDIR"/samples
/ipc
/server
"$GUISUFFIX
879 cd $WXDIR"/samples
/ipc
"
880 echo "Starting server...
"
882 echo "Waiting
10 seconds...
"
884 echo "Starting client...
"
893 while [ "$runoption" != "0" ]
896 echo "Run a wxWindows sample
"
897 echo "--------------------"
898 echo "Note
: this is a small selection. For
more, please
"
899 echo "browse the samples subdirectory.
"
901 echo "1) Run Minimal sample
"
902 echo "2) Run MDI sample
"
903 echo "--------------------"
908 if [ "$runoption" = "1" ]
912 if [ "$runoption" = "2" ]
922 make_all_periph_components
930 echo "Remove
"$COMPONENT": are you sure?
(y
/n
) "
943 while [ "$compoption" != "0" ]
945 if [ -f $WXDIR/docs/pdf/wx.pdf ]
952 if [ -f $WXDIR/docs/html/wx/wx.htm ]
959 if [ -d $WXDIR/utils/wxtree ]
966 # if [ -d $WXDIR/utils/wxgraph ]
973 # if [ -d $WXDIR/utils/wxhelp ]
980 # if [ -d $WXDIR/utils/tex2rtf ]
987 if [ -d $WXDIR/utils/dialoged ]
995 echo "Remove a wxWindows component
(* means it
's installed)"
996 echo "-----------------------------------------------------"
997 echo "wxWindows currently takes up this many KB:"
999 echo "-----------------------------------------------------"
1000 echo " 1) "$PDFMANUALSOK"Remove PDF manuals"
1001 echo " 2) "$HTMLMANUALSOK"Remove HTML manuals"
1002 echo " 3) "$WXTREEOK"Remove wxTree library"
1003 # echo " 4) "$WXGRAPHOK"Remove wxGraph library"
1004 # echo " 8) "$TEX2RTFOK"Remove Tex2RTF/HTML/WinHelp/wxHelp converter"
1005 echo " 4) "$DIALOGEDOK"Remove Dialog Editor"
1006 echo "------------------------------------------------------"
1011 if [ "$compoption" = "1" ]
1015 if [ "$compoption" = "2" ]
1017 rm -f -r $WXDIR/html
1019 if [ "$compoption" = "3" ]
1021 COMPONENT=$WXDIR/utils/wxtree
1024 if [ "$compoption" = "4" ]
1026 COMPONENT=$WXDIR/utils/dialoged
1034 if [ -d $COMPONENT ]
1037 make -f makefile.unx clean$GUISUFFIX
1045 make -f makefile.unx clean$GUISUFFIX
1049 # -f $WXDIR/samples/pressup/pressup$GUISUFFIX -o \
1050 # -f $WXDIR/samples/bombs/bombs$GUISUFFIX -o \
1051 # -f $WXDIR/samples/fractal/fractal$GUISUFFIX -o \
1052 # -f $WXDIR/samples/animate/anim$GUISUFFIX -o \
1053 # -f $WXDIR/samples/ipc/server$GUISUFFIX -o \
1059 while [ "$compoption" != "0" ]
1061 if [ -f $WXDIR/samples/controls/controls$GUISUFFIX -o \
1062 -f $WXDIR/samples/forty/forty$GUISUFFIX -o \
1063 -f $WXDIR/samples/splitter/splitter$GUISUFFIX -o \
1064 -f $WXDIR/samples/docview/docview$GUISUFFIX -o \
1065 -f $WXDIR/samples/wxpoem/wxpoem$GUISUFFIX -o \
1066 -f $WXDIR/samples/printing/printing$GUISUFFIX -o \
1067 -f $WXDIR/samples/resource/resource$GUISUFFIX -o \
1068 -f $WXDIR/samples/layout/layout$GUISUFFIX -o \
1069 -f $WXDIR/samples/toolbar/test$GUISUFFIX -o \
1070 -f $WXDIR/samples/dialogs/dialogs$GUISUFFIX -o \
1071 -f $WXDIR/samples/types/types$GUISUFFIX -o \
1072 -f $WXDIR/samples/mdi/mdi$GUISUFFIX -o \
1073 -f $WXDIR/samples/minimal/minimal$GUISUFFIX ]
1080 if [ -f $WXDIR/lib/libwx$GUISUFFIX".a" ]
1087 if [ -f $WXDIR/utils/tex2rtf/src/objects$GUISUFFIX/tex2rtf.o ]
1094 if [ -f $WXDIR/utils/dialoged/src/dialoged$GUISUFFIX ]
1102 echo "Cleanup a wxWindows component (* means objects/binaries exist, - means unknown)"
1103 echo "-----------------------------------------------------"
1104 echo "wxWindows currently takes up this many KB:"
1105 newdu=`du -s $WXDIR`
1106 if [ "$olddu" = "" ]
1110 theline=$newdu" (previous usage was "$olddu")"
1114 echo "-----------------------------------------------------"
1115 echo " 1) "$WXOK"Clean wxWindows library"
1116 echo " 2) "$SAMPLESOK"Clean all wxWindows samples"
1117 echo " 3) -Clean all utilities"
1118 echo " 4) "$TEX2RTFOK"Clean Tex2RTF/HTML/WinHelp/wxHelp converter"
1119 echo " 5) "$DIALOGEDOK"Clean Dialoged Editor tool"
1120 echo "------------------------------------------------------"
1125 if [ "$compoption" = "1" ]
1127 COMPONENT=$WXDIR/src/x
1130 if [ "$compoption" = "2" ]
1133 make -f makefile.unx clean$GUISUFFIX
1136 if [ "$compoption" = "3" ]
1139 make -f makefile.unx clean$GUISUFFIX
1142 if [ "$compoption" = "4" ]
1144 COMPONENT=$WXDIR/utils/tex2rtf/src
1147 if [ "$compoption" = "5" ]
1149 COMPONENT=$WXDIR/utils/dialoged/src
1160 while [ "$selectdone" = "0" ]
1163 echo "Select a target"
1164 echo "---------------"
1169 if [ "$compoption" = "1" ]
1182 echo "Select wxWindows directory"
1183 echo "--------------------------"
1185 echo "Current directory: " $WXDIR
1187 echo "New directory: (return for existing value):"
1201 echo "Sorry -- you must unarchive the distribution before you can"
1202 echo "look at the manual."
1205 while [ "$manoption" != "0" ]
1208 echo "View wxWindows documentation"
1209 echo "----------------------------"
1210 echo "1) The installation instructions, using "$MYPAGER
1211 echo "2) readme.txt, using "$MYPAGER
1212 echo "3) The change log, using "$MYPAGER
1213 echo "4) The HTML manual hierarchy, using $HTMLVIEWER"
1214 echo "--------------------"
1219 if [ "$manoption" = "1" ]
1221 if [ -f $WXDIR"/docs/motif/install.txt" ]
1223 $MYPAGER $WXDIR/docs/motif/install.txt
1225 if [ -f "install.txt" ]
1227 $MYPAGER "install.txt"
1229 if [ -f $WXDIR/"install.txt" ]
1231 $MYPAGER $WXDIR/"install.txt"
1234 echo "Sorry, cannot find install.txt. Perhaps you did not ftp"
1235 echo "it along with the archives, and/or you haven't unarchived
"
1236 echo "the sources yet. Please press
return to
continue.
"
1243 if [ "$manoption" = "2" ]
1245 if [ -f $WXDIR"/docs
/motif
/readme.txt
" ]
1247 $MYPAGER $WXDIR/docs/motif/readme.txt
1249 if [ -f "readme.txt
" ]
1251 $MYPAGER "readme.txt
"
1253 if [ -f $WXDIR/"readme.txt
" ]
1255 $MYPAGER $WXDIR/"readme.txt
"
1258 echo "Sorry
, cannot
find readme.txt. Perhaps you did not
ftp"
1259 echo "it along with the archives
, and
/or you haven
't unarchived"
1260 echo "the sources yet. Please press return to continue."
1267 if [ "$manoption" = "3" ]
1269 if [ -f $WXDIR"/docs/motif/changes.txt" ]
1271 $MYPAGER $WXDIR/docs/motif/changes.txt
1273 if [ -f "changes.txt" ]
1275 $MYPAGER "changes.txt"
1277 if [ -f $WXDIR/"changes.txt" ]
1279 $MYPAGER $WXDIR/"changes.txt"
1282 echo "Sorry, cannot find changes.txt. Perhaps you did not ftp"
1283 echo "it along with the archives, and/or you haven't unarchived
"
1284 echo "the sources yet. Please press
return to
continue.
"
1291 if [ "$manoption" = "4" ]
1293 $HTMLVIEWER $WXDIR"/docs
/html
/index.htm
"
1303 while [ "$ans" != "y
" ]
1307 echo The GUI target is GUITARGET=$GUITARGET ".
"
1309 echo The directory to install to is WXDIR=$WXDIR
1312 platform_description
1313 echo The selected platform is $arg
1315 echo "Please check these settings carefully.
"
1316 echo "Are they correct
for your system?
(y
/n
)"
1321 if [ "$ans" != "y
" ]
1331 echo "Configuring wxWindows
"
1332 echo "---------------------"
1334 echo "Most makefile settings to
do with compilers
, platforms and
"
1335 echo "directories are kept
in "$WXDIR"/src
/make.env.
"
1337 echo "If you get a compiler error or warning
, please strongly
"
1338 echo "suspect this
file, and
if necessary edit it from the first
"
1339 echo "option on the Main Menu.
"
1341 echo "Some suggestions
for settings are contained
in make.env
,"
1342 echo "and further information is
in "$WXDIR"/install
/install.txt.
"
1344 echo wxWindows itself can be tailored to remove certain features
1345 echo "(such as PostScript support
), or
select library preferences
, by
"
1346 echo "editing the
file "$WXDIR"/include
/wx
/motif
/setup.h.
"
1348 echo The setup.h defaults are probably ok for now though.
1350 echo "Please press
return to
continue.
"
1355 echo "Configuring wxWindows
(cont
'd)"
1356 echo "--------------------- --------"
1358 echo "By default (at least for GNU compiler use), debugging information"
1359 echo "is included. This will make the libraries and binaries"
1360 echo "a lot bigger than if you left debugging information out."
1362 echo "So you might want to set DEBUG to nothing in make.env"
1363 echo "to disable debugging information, at least for a first look at wxWindows."
1365 echo "Please press return to continue."
1370 echo "You may wish to choose 'View documentation
' now..."
1373 ############# MAIN BIT OF THE SCRIPT #################
1376 echo "-------------------------------------------"
1377 echo "Welcome to the wxWindows 2.0 installation."
1378 echo "-------------------------------------------"
1380 echo "This script will install from the archives:"
1382 echo " "$ARCHIVE"gen.zip, "$ARCHIVE"mot.zip"
1384 echo "and, if present, HTML and PDF archives."
1386 echo "This installation is best done from a new directory where"
1387 echo "wxWindows will be installed, and which contains the .zip files."
1388 echo "For example, ~/wx."
1392 if [ ! -f $WXDIR/src/make.env ]
1394 install_from_archive
1400 while [ "$useroption" != "0" ]
1403 echo "wxWindows Installation Main Menu"
1404 echo "--------------------------------"
1406 echo " 1) Install from archive."
1407 echo " 2) Make main wxWindows library."
1408 echo " 3) Make a peripheral component."
1409 echo " 4) Make a sample."
1410 echo " 5) Make absolutely everything."
1411 echo " 6) Run a sample."
1412 echo " 7) View documentation."
1413 echo " 8) Clean objects/binaries, saving space."
1414 echo " 9) Remove wxWindows components from disk."
1415 echo "10) Edit make.env."
1416 echo "11) Change the selected target platform"
1417 echo "-----------------------------------"
1418 echo " 0) Exit from installation."
1422 if [ "$useroption" = "1" ]
1424 install_from_archive
1426 if [ "$useroption" = "2" ]
1430 if [ "$useroption" = "3" ]
1432 make_peripheral_components
1434 if [ "$useroption" = "4" ]
1438 if [ "$useroption" = "5" ]
1442 if [ "$useroption" = "6" ]
1446 if [ "$useroption" = "7" ]
1450 if [ "$useroption" = "8" ]
1454 if [ "$useroption" = "9" ]
1458 if [ "$useroption" = "10" ]
1462 if [ "$useroption" = "11" ]
1469 echo "Goodbye! I hope your wxWindows installation was successful."
1471 echo "You can subscribe to the mailing list wxwin-users"
1472 echo "for further assistance from experienced users."
1474 echo "Information is also available via the World Wide Web at:"
1476 echo "http://web.ukonline.co.uk/julian.smart/wxwin"
1478 echo "If all else fails, please contact me, Julian Smart, at:"
1480 echo "julian.smart@ukonline.co.uk"
1482 echo "If you have any suggestions, bug reports or patches,"
1483 echo "please email me at the above address."