wmaker: remove useless null pointer check (Coverity #109612)
[wmaker-crm.git] / wrlib / get-wraster-flags
blobed245b953197fb4106a62007e6030e64546eca4d
1 #!/bin/sh
3 # [Christophe CURIS, 2015/01/31]
4 # This script is now reporting itself as deprecated (this should have been done
5 # a long time ago), so it should be kept for at least 2 years from now in order
6 # to allow users to update their scripts, and then removed.
8 if test $# -eq 0; then
9 echo "Error: $0 is deprecated, please use 'pkg-config wrlib ...'" >&2
10 exit 1
13 while test $# -gt 0; do
14 case $1 in
15 --cflags)
16 echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --cflags'" >&2
17 pkg-config wrlib --cflags
19 --ldflags|--lflags)
20 echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --libs'" >&2
21 pkg-config wrlib --libs-only-L
23 --libs)
24 echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --libs'" >&2
25 pkg-config wrlib --libs
28 echo "Error: $0 is deprecated, please use 'pkg-config wrlib ...'" >&2
29 exit 1
31 esac
32 shift
33 done