File: check_metatile.sh

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (13 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Copyright: CC0
if [ $(echo -n I | od -to2 | awk '{ print substr($2,6,1); exit}') != 1 ]; then
    echo "Skipping metatile test on big endian machine"
    echo " sample metatile file is only for little endian machines"
    exit 0
fi

if [ -n "$srcdir" ]; then
  ./test_metatile "$srcdir/metatile_example" && rm tilefrommeta.png
else
  ./test_metatile && rm tilefrommeta.png
fi