81413e4bd9
fix shebang in xfig.sh script: option '-a' of 'exec' command may be unsupported in other POSIX-complete shells OBS-URL: https://build.opensuse.org/request/show/262246 OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=47
18 lines
427 B
Bash
18 lines
427 B
Bash
#!/bin/bash
|
|
#
|
|
# Reset UTF-8 charmaping to a more xfig compatible one
|
|
#
|
|
for lc in LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE \
|
|
LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME \
|
|
LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
|
|
LC_IDENTIFICATION LC_ALL
|
|
do
|
|
eval val="\$$lc"
|
|
test -n "$val" || continue
|
|
case "$val" in
|
|
*.UTF-8) eval $lc=\${val%[.@]*} ;;
|
|
esac
|
|
done
|
|
unset ret val
|
|
exec -a $0 @@BINDIR@@/xfig.bin ${1+"$@"}
|