Add our mirror of MSys as a submodule
[msysgit.git] / bin / msysrlsbld
blobb8cb7cde576ce2f711948e4e529a70f92b58f8c4
1 #!/bin/sh
2 # Copyright (C) 2002, Earnie Boyd <earnie@users.sf.net>
3 # This file is a part of msysDVLPR
4 # http://www.mingw.org/msysdvlpr.shtml
6 # File: msysrlsbld
7 # Desc: Build a package for MSYS release.
8 # Vers: 1.1
9 # LMDt: 2002.04.17
11 # ccflags can be set external to control use of new flags without needing to
12 # change this file. E.G.: ccflags='-O0 -g -fnative-struct -fgnu-linker'.
13 if [ -z "$ccflags" ]
14 then
15 ccflags='-O2 -s -fnative-struct -fgnu-linker -finline-functions'
18 # Setting arch or archlist can be used to test changes for one arch build
19 # E.G.: export arch=i686
20 if [ -z $archlist ]
21 then
22 if [ -z $arch ]
23 then
24 archlist='i386 i586 i686'
25 else
26 archlist=$arch
30 # You can set msysinstalldir so that the build installs to the project store
31 # directory. E.G.: export msysinstalldir=/prj/msys/nstl.
32 if [ -z $msysinstalldir ]
33 then
34 msysinstalldir=`pwd`/nstl
37 for arch in $archlist
39 make clean
40 make CFLAGS="$ccflags -march=$arch" CXXFLAGS="$ccflags -march=$arch"
41 make install prefix=$msysinstalldir/$arch
42 done
43 exit
45 #TODO:
46 # Add package options for configuring and building the release
47 # Add release management routines.