File: build-obdsim-windows.sh

package info (click to toggle)
obdgpslogger 0.16-1.3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,160 kB
  • ctags: 7,498
  • sloc: ansic: 73,206; cpp: 2,055; php: 407; sh: 51; makefile: 4
file content (37 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

# Simple script to bake a windows obdsim build
# Uses mingw on linux. Please read cmakemodules/Toolchain-mingw32.cmake

# Run from top level obdgpslogger checkout with
#   "sh cmakemodules/build-obdsim-windows.sh"

TOPLEVEL="`basename $0`/../"
BUILDDIR="build-mingw"

cd $TOPLEVEL

rm -rf "$BUILDDIR"
mkdir -p "$BUILDDIR"

cd "$BUILDDIR"

cmake -DCMAKE_TOOLCHAIN_FILE=../cmakemodules/Toolchain-mingw32.cmake ..
make obdsim

mkdir obdsimwindows
cp ../bin/obdsim.exe ./obdsimwindows/
cp ../doc/obdsim-on-windows.txt ./obdsimwindows/
MANWIDTH=80; export MANWIDTH
man -M ../man obdsim | col -b > ./obdsimwindows/obdsim-manpage.txt

ZIPFILE="obdsimwindows-`date +%F`.zip"

zip -r9 "$ZIPFILE" obdsimwindows

scp "$ZIPFILE" i.o:/webspace/projects/obdgpslogger/downloads

ssh i.o "cd /webspace/projects/obdgpslogger/downloads/; rm -f obdsimwindows-latest.zip; ln -s \"$ZIPFILE\" obdsimwindows-latest.zip"

echo "http://icculus.org/obdgpslogger/downloads/$ZIPFILE"