Make it compile again.
[gliv.git] / tools / gperf2zsh.sh
bloba26ab6a7de54d773fed353cff1eb0d286d879a25
1 #!/bin/sh
3 [ "$#" = "1" ] || exit 1
5 FORMATS_FILE=$1
7 DECOMP_EXTS=$(grep LOADER_DECOMP $FORMATS_FILE | cut -d, -f1)
8 NORMAL_EXTS=$(grep -E 'LOADER_(PIXBUF|DOT_GLIV)' $FORMATS_FILE | cut -d, -f1)
9 EXTS=$NORMAL_EXTS
11 for d in $DECOMP_EXTS
12 do for n in $NORMAL_EXTS
13 do EXTS="$EXTS $n\.$d"
14 done
15 done
17 echo -n "'*:image:_files -/ -g \*.\(\#i\)\("
18 echo -n $EXTS | sed 's# #\\|#g'
19 echo -n "\)'"
20 echo