/[groff]/groff/arch/misc/shdeps.sh
ViewVC logotype

Diff of /groff/arch/misc/shdeps.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by wlemb, Fri Apr 9 09:01:21 2004 UTC revision 1.3 by wl, Wed May 18 07:03:06 2005 UTC
# Line 1  Line 1 
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:
# Line 40  then Line 40  then
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
# Line 83  case "\$OSTYPE" in\\ Line 84  case "\$OSTYPE" in\\
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    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26