comparison build-msw-release.sh @ 708:512e4a478e9d

[xemacs-hg @ 2001-12-20 06:08:09 by andyp] sync with 21-4-6-windows
author andyp
date Thu, 20 Dec 2001 06:10:13 +0000
parents a05e8cd20cce
children 5b3cf2203477
comparison
equal deleted inserted replaced
707:a307f9a2021d 708:512e4a478e9d
27 # pick up version info 27 # pick up version info
28 . version.sh 28 . version.sh
29 29
30 # decide on names 30 # decide on names
31 emacs_ver=${emacs_major_version}.${emacs_minor_version}.${emacs_beta_version} 31 emacs_ver=${emacs_major_version}.${emacs_minor_version}.${emacs_beta_version}
32 cygwin_tarball=xemacs-i686-pc-cygwin-${emacs_ver}.tar.gz 32 cygwin_tarball=xemacs-i686-pc-cygwin-${emacs_ver}${emacs_kit_version}.tar.gz
33 win32_tarball=xemacs-i586-pc-win32-${emacs_ver}.tar.gz 33 win32_tarball=xemacs-i586-pc-win32-${emacs_ver}${emacs_kit_version}.tar.gz
34 34
35 # create a dist directory
36 mkdir -p windows/cygwin32
37 mkdir -p windows/win32
38 mkdir -p /usr/local
39 DISTDIR=`pwd`/windows 35 DISTDIR=`pwd`/windows
40 36
41 # check to see if we should build 37 # check to see if we should build
42 if test "$BUILD" = "1" 38 if test "$BUILD" = "1"
43 then 39 then
47 # cleanup everything first 43 # cleanup everything first
48 if [ -f Makefile ] ; then 44 if [ -f Makefile ] ; then
49 make distclean 45 make distclean
50 fi 46 fi
51 47
48 # nuke the dist dir.
49 rm -rf windows
50
51 # create a dist directory
52 mkdir -p windows/cygwin32
53 mkdir -p windows/win32
54 mkdir -p /usr/local
55
52 # first build win32 56 # first build win32
53 (cd nt; 57 (cd nt;
58 nmake -f xemacs.mak clean;
54 nmake -f xemacs.mak) 59 nmake -f xemacs.mak)
55 (cd "${PROGRAM_FILES}"; 60 (cd "${PROGRAM_FILES}";
56 rm -rf ./XEmacs-${emacs_ver}) 61 rm -rf ./XEmacs-${emacs_ver})
57 (cd nt; 62 (cd nt;
58 nmake -f xemacs.mak install; 63 nmake -f xemacs.mak install;
97 cygwin_tarball_size=`ls -l windows/cygwin32/${cygwin_tarball} | awk '{ print $5; }'` 102 cygwin_tarball_size=`ls -l windows/cygwin32/${cygwin_tarball} | awk '{ print $5; }'`
98 win32_tarball_size=`ls -l windows/win32/${win32_tarball} | awk '{ print $5; }'` 103 win32_tarball_size=`ls -l windows/win32/${win32_tarball} | awk '{ print $5; }'`
99 104
100 (cd netinstall; 105 (cd netinstall;
101 make CYGWIN_SIZE=${cygwin_tarball_size} \ 106 make CYGWIN_SIZE=${cygwin_tarball_size} \
102 WIN32_SIZE=${win32_tarball_size} setup-bin.ini ) 107 WIN32_SIZE=${win32_tarball_size} \
108 KIT_VERSION=${emacs_kit_version} setup-bin.ini )
103 cp netinstall/setup-bin.ini windows 109 cp netinstall/setup-bin.ini windows
104 110
105 # tidy up 111 # tidy up
106 make distclean 112 make distclean
107 113