NetBSD port

This commit is contained in:
Ulrich Wilkens
2014-02-20 19:19:17 +01:00
committed by Jon Trulson
parent a4f9413950
commit 2712d5f787
94 changed files with 2443 additions and 302 deletions

View File

@@ -1,5 +1,5 @@
$ $XConsortium: dtprintinfo.msg.src /main/1 1995/12/04 17:07:27 rswiston $
$quote "
$quote XDQUOTE
$set DTPRINTER_SET
$ ----- These are the titles that appear on dialogs and the main window -----

View File

@@ -105,7 +105,7 @@ SysErrorMsg(
int n
)
{
#if !defined(linux) && !defined(__FreeBSD__)
#if !defined(linux) && !defined(__FreeBSD__) && !defined(__NetBSD__)
extern char *sys_errlist[];
extern int sys_nerr;
#endif

View File

@@ -10,13 +10,11 @@
# by gencat.
#
typeset -u CAP_SYMBOL_NAME
(( $# != 2 )) && { print "usage: sym2num <symbol name> <source file>" ;\
exit 1 ; }
SYMBOL_NAME=$1
CAP_SYMBOL_NAME=$1 # capitalized symbol name
CAP_SYMBOL_NAME=`echo $1 | tr '[:lower:]' '[:upper:]'` # capitalized symbol
SOURCE_FILE=$2
inc_file=${SYMBOL_NAME}_msg.h # include file
@@ -61,11 +59,15 @@ then
elif [[ -f /usr/libexec/cpp ]] #BSD
then
cpp_path=/usr/libexec
elif [[ -f /usr/bin/cpp ]] #BSD
then
cpp_path=/usr/bin
elif [[ -f /lib/cpp ]] #HP
then
cpp_path=/lib
fi
( cat ${inc_file} | sed -n /define/p ; cat ${SOURCE_FILE} ) | \
${cpp_path}/cpp -P | sed '/^$/d' | sed 's/^\([1-9][0-9]*\)[ ]*\(.*\)/\1 \2/'
${cpp_path}/cpp -P | sed -e '/^$/d' -e 's/^\$$/\$ /' \
-e 's/\"\"$/\"/' -e 's/XDQUOTE/\"/' -e "s/XSQUOTE/\'/" \
-e 's/^\([1-9][0-9]*\)[ ]*[\"]*\(\"\)\(.*\)/\1 \2\3/'