summaryrefslogtreecommitdiffstats
path: root/x11vnc/misc/turbovnc/apply_turbovnc
blob: 0a8ca7a2dddf2e2b627d228c8660b11aac97a76b (plain)
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
#!/bin/sh

ldir="../../../libvncserver"

fail=""
if [ ! -f "./tight.c" ]; then
	fail=1
fi
if [ ! -f "./turbojpeg.h" ]; then
	fail=1
fi
if [ ! -f "./convert" ]; then
	fail=1
fi
if [ ! -f "$ldir/tight.c" ]; then
	ls -l "$ldir/tight.c"
	fail=1
fi
if [ "X$fail" = "X1" ]; then
	echo "Must be run from inside the directory containing 'apply_turbovnc'"
	exit 1
fi

if [ -f "$ldir/tight.c.ORIG" ]; then
	set -xv
else
	set -xv
	cp -p "$ldir/tight.c" "$ldir/tight.c.ORIG"
fi

perl ./convert ./tight.c > "$ldir/tight.c"
cp -p ./turbojpeg.h "$ldir"
ls -l $ldir/tight.c* $ldir/turbojpeg.h
OpenPOWER on IntegriCloud