Translated using Weblate (Chinese (Simplified))
[cygwin-setup.git] / packaging-scripts / conf.sh
blob9af7a792615397d179da89ac087e3a3afd0fa0f3
1 #!/bin/bash -e
3 TARGET=${1:-upx}
4 ARCHES=${2:-i686 x86_64}
6 function arch() {
7 cpu=$1
8 rm -rf $cpu
9 mkdir $cpu
10 cd $cpu
12 NOCONFIGURE=1 ../bootstrap.sh --host=$cpu-w64-mingw32
13 ../configure --host=$cpu-w64-mingw32 --target=$cpu-w64-mingw32
15 make ${TARGET}
17 cd ..
20 for ARCH in ${ARCHES} ; do
21 arch ${ARCH}
22 done