mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
8955516c10
Fix manpage locations
(This used to be commit 33c71c0fb1
)
29 lines
485 B
Bash
Executable File
29 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This is a hack to allow per target cflags. It isn't very elegant, but it
|
|
# is the most portable idea we have come up with yet
|
|
# tridge@samba.org, July 2005
|
|
|
|
TARGET=$1
|
|
|
|
check_flags()
|
|
{
|
|
NAME=$1
|
|
(
|
|
while read tag flags; do
|
|
if [ "$tag" = "$NAME" ] || [ "./$tag" = "$NAME" ]; then
|
|
echo "$flags"
|
|
exit 0;
|
|
fi
|
|
done
|
|
) < extra_cflags.txt
|
|
}
|
|
|
|
|
|
NAME=$TARGET
|
|
while [ "$NAME" != "." ]; do
|
|
check_flags "$NAME"
|
|
NAME=`dirname $NAME`
|
|
done
|
|
exit 0;
|