1 |
#!/bin/sh |
#! /bin/sh |
2 |
# shdeps.sh: Generate OS dependency fixups, for `groff' shell scripts |
# shdeps.sh: Generate OS dependency fixups, for `groff' shell scripts |
3 |
# |
# |
4 |
# Copyright (C) 2004 Free Software Foundation, Inc. |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
5 |
# Written by Keith Marshall (keith.d.marshall@ntlworld.com) |
# Written by Keith Marshall (keith.d.marshall@ntlworld.com) |
6 |
# |
# |
7 |
# Invoked only by `make', as: |
# Invoked only by `make', as: |
40 |
cat << ETX |
cat << ETX |
41 |
\\ |
\\ |
42 |
GROFF_RUNTIME="\${GROFF_BIN_PATH=$3}:" |
GROFF_RUNTIME="\${GROFF_BIN_PATH=$3}:" |
43 |
|
/@PATH_SEARCH_SETUP@/d |
44 |
ETX |
ETX |
45 |
|
|
46 |
else |
else |
84 |
GROFF_RUNTIME=\${GROFF_BIN_PATH="$POSIX_BINDIR"}";" ;;\\ |
GROFF_RUNTIME=\${GROFF_BIN_PATH="$POSIX_BINDIR"}";" ;;\\ |
85 |
esac |
esac |
86 |
ETX |
ETX |
87 |
|
# On Microsoft platforms, we may also need to configure |
88 |
|
# the PATH search function, used in the `pdfroff' script, |
89 |
|
# to use ';', instead of ':', as the PATH_SEPARATOR. |
90 |
|
|
91 |
|
cat << ETX |
92 |
|
/@PATH_SEARCH_SETUP@/c\\ |
93 |
|
#\\ |
94 |
|
# This implementation is configured for a Microsoft platform.\\ |
95 |
|
# Thus, the default PATH_SEPARATOR is ';', although some shells may\\ |
96 |
|
# use the POSIX standard ':' instead. Therefore, we need to examine\\ |
97 |
|
# the OSTYPE environment variable, to identify which is appropriate\\ |
98 |
|
# to make PATH searches work correctly.\\ |
99 |
|
#\\ |
100 |
|
case "\$OSTYPE" in\\ |
101 |
|
#\\ |
102 |
|
msys | cygwin)\\ |
103 |
|
#\\ |
104 |
|
# These emulate POSIX, and use ':'\\ |
105 |
|
#\\ |
106 |
|
PATH_SEPARATOR=\${PATH_SEPARATOR-':'} ;;\\ |
107 |
|
#\\ |
108 |
|
*)\\ |
109 |
|
#\\ |
110 |
|
# For anything else, default to ';'\\ |
111 |
|
#\\ |
112 |
|
PATH_SEPARATOR=\${PATH_SEPARATOR-';'} ;;\\ |
113 |
|
esac |
114 |
|
ETX |
115 |
|
|
116 |
fi |
fi |
117 |
|
|