summaryrefslogtreecommitdiffstats
path: root/kernel/kls_ljpeg/ksquirrel-libs-ljpeg2ppm-s
blob: 74c303884111d2fc1c7297449d7587f68c4585a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

kls_ljpeg_i=""
kls_ljpeg_o=""
kls_ljpeg_bin=""

while [ "$1" ] ; do

    case "$1" in
        "--input")  kls_ljpeg_i="$2"   shift ;;
        "--output") kls_ljpeg_o="$2"   shift ;;
        "--binary") kls_ljpeg_bin="$2" shift ;;
    esac

shift
done

$kls_ljpeg_bin "$kls_ljpeg_i" > "$kls_ljpeg_o"