1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00
Files
wmaker/wrlib/get-wraster-flags
Christophe CURIS efdb29762d wrlib: mark the script 'get-wraster-flags' as deprecated
This script should have been removed a long time ago, in favour of
pkg-config which has to be present anyway to compile Window Maker.

This patch makes the script print a warning about it, and now calls itself
pkg-config, instead of being generated; the man page was also updated
accordingly (and spell-checked).

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2015-04-18 19:31:10 +01:00

34 lines
946 B
Bash
Executable File

#!/bin/sh
# [Christophe CURIS, 2015/01/31]
# This script is now reporting itself as deprecated (this should have been done
# a long time ago), so it should be kept for at least 2 years from now in order
# to allow users to update their scripts, and then removed.
if test $# -eq 0; then
echo "Error: $0 is deprecated, please use 'pkg-config wrlib ...'" >&2
exit 1
fi
while test $# -gt 0; do
case $1 in
--cflags)
echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --cflags'" >&2
pkg-config wrlib --cflags
;;
--ldflags|--lflags)
echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --libs'" >&2
pkg-config wrlib --libs-only-L
;;
--libs)
echo "Warning: $0 is deprecated, please use 'pkg-config wrlib --libs'" >&2
pkg-config wrlib --libs
;;
*)
echo "Error: $0 is deprecated, please use 'pkg-config wrlib ...'" >&2
exit 1
;;
esac
shift
done