forked from markwal/GPX
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·49 lines (46 loc) · 1.26 KB
/
release.sh
File metadata and controls
executable file
·49 lines (46 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# This is the script to build most of the release archives that we publish to
# github releases. It is intended to run on a linux system though a Mac might be
# better since the idea is to cross-compile as many as possible and the Mac can
# do all of the builds we currently release: mac, linux, mingw32, mingw64, but
# for now, I don't have a Mac, so this script does the other three
echo "------------------------------------------------------------------"
echo "Linux build first"
mkdir -p build
cd build
mkdir -p linux
cd linux
../../configure --enable-maintainer-mode $args
make
make test
make install
make bdist
archive=`ls gpx*.tar.gz`
if [[ "${#archive[@]}" == "1" ]]; then
mv $archive ..
fi
cd ..
for plat in "win32" "win64"; do
echo "------------------------------------------------------------------"
echo "Building $plat"
mkdir -p $plat
cd $plat
pwd
case $plat in
win32)
args="-host i686-w64-mingw32"
;;
win64)
args="-host x86_64-w64-mingw32"
;;
esac
echo "Calling configure"
../../configure --enable-maintainer-mode $args
make
make bdist
archive=`ls gpx*.zip`
if [[ "${#archive[@]}" == "1" ]]; then
mv $archive ..
fi
cd ..
done