unigine-superposition.sh 669 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

TAR="$1"
RETURNTARNAME="$2"

OPKGNAME="Unigine_Superposition"

. $(dirname $0)/common.sh

# args: <run file> <output tar>
convert_makeself_to_tar()
{
    offset=`head -n 402 "$1" | wc -c | tr -d " "`
14
    dd if="$1" ibs=$offset skip=1 obs=1024 conv=sync status=progress | gzip -cd > "$2"
15 16
}

17
BASENAME="$(basename $TAR .run | tr "[A-Z_]" "[a-z-]")"
18 19 20

convert_makeself_to_tar $TAR $BASENAME.tar

Vitaly Lipatov's avatar
Vitaly Lipatov committed
21 22 23 24 25 26 27 28 29
cat <<EOF >$BASENAME.tar.eepm.yaml
name: $PRODUCT
group: Graphics
license: Proprietary
url: https://benchmark.unigine.com/superposition
summary: Unigine Heaven (Unigine Benchmark)
description: Unigine Superposition (Unigine Benchmark).
EOF

30 31
return_tar $BASENAME.tar