ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/1_prepare_files.sh
Revision: 1.6
Committed: 2003-03-24T06:18:20Z (21 years, 5 months ago) by nigel
Content type: application/x-sh
Branch: MAIN
Changes since 1.5: +2 -1 lines
Log Message:
I was compiling ../Unix/sys_unix.cpp, but that meant the compiler
was pulling in ../Unix/sysdeps.h that did not define loff_t.
So, I now generate and compile a symlink to that file instead

File Contents

# User Rev Content
1 nigel 1.2 #!/bin/sh
2 nigel 1.3 #
3 nigel 1.6 # $Id: 1_prepare_files.sh,v 1.5 2003/03/21 12:38:04 nigel Exp $
4 nigel 1.3 #
5 nigel 1.2 # Run this to generate all the initial makefiles, etc.
6    
7     #
8     # Note that we actually don't need a config.guess
9     # We could instead do something like:
10     # ./configure --build=powerpc-apple-darwin6.1
11     #
12     if [ -e /usr/libexec/config.guess ]
13     then
14     #
15     # MacOS X 10.1
16     #
17 nigel 1.3 ln -sf /usr/libexec/config.guess .
18     ln -sf /usr/libexec/config.sub .
19 nigel 1.2 else
20     #
21     # MacOS X 10.2 (and later?)
22     #
23 nigel 1.3 ln -sf /usr/share/libtool/config.guess .
24     ln -sf /usr/share/libtool/config.sub .
25 nigel 1.2 fi
26    
27 nigel 1.6 ln -sf ../Unix/sys_unix.cpp .
28 nigel 1.3 ln -sf ../Unix/user_strings_unix.h .
29     ln -sf ../Unix/install-sh .
30     ln -sf ../../README README.txt
31 nigel 1.2
32 nigel 1.5 #
33     # This is how I generated the button images:
34     #
35     #T=/System/Library/CoreServices/loginwindow.app/Resources
36     #tiffutil -cat $T/resetH.tif -out English.lproj/MainMenu.nib/resetH.tiff
37     #tiffutil -cat $T/resetN.tif -out English.lproj/MainMenu.nib/resetN.tiff
38     #tiffutil -cat $T/shutdownH.tif -out English.lproj/MainMenu.nib/shutdownH.tiff
39     #tiffutil -cat $T/shutdownN.tif -out English.lproj/MainMenu.nib/shutdownN.tiff
40     #unset T
41 nigel 1.4
42     #
43     # Generate ./configure from configure.in
44     #
45 nigel 1.1 autoconf
46 nigel 1.2
47 nigel 1.4 #
48     # Generate config.h.in from configure.in
49     #
50 nigel 1.3 autoheader
51    
52 nigel 1.2 if test -z "$*"; then
53 nigel 1.3 echo "*************************************************"
54     echo "I am going to run ./configure with no arguments -"
55     echo " if you wish to pass any to it, please specify"
56     echo " them on the $0 command line."
57     echo "*************************************************"
58 nigel 1.2 fi
59    
60     ./configure "$@"