ndrgen.sh (9c21fe179ede0eb7881c4d5244e0ab090fdd3c9c) ndrgen.sh (a0b6e447978c306e15941d158bf6939a42ed2726)
1#!/bin/ksh -p
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#

--- 6 unchanged lines hidden (view full) ---

15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
1#!/bin/ksh -p
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#

--- 6 unchanged lines hidden (view full) ---

15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
24# Use is subject to license terms.
25#
26# ident "%Z%%M% %I% %E% SMI"
27#
28
29# This is a wrapper script around the ndrgen compiler (ndrgen1).
30# CC must be defined in the environment or on the command line.
31
32NDRPROG="${0%/*}/ndrgen1"
33INCDIR=${ROOT}/usr/include/smbsrv
34
35PROGNAME=`basename $0`

--- 80 unchanged lines hidden (view full) ---

116 ndrgen_copy_header $i ${BASENAME}_ndr.c
117
118 cat - << EOF >> ${BASENAME}_ndr.c
119/*
120 * Please do not edit this file.
121 * It was generated using ndrgen.
122 */
123
26
27# This is a wrapper script around the ndrgen compiler (ndrgen1).
28# CC must be defined in the environment or on the command line.
29
30NDRPROG="${0%/*}/ndrgen1"
31INCDIR=${ROOT}/usr/include/smbsrv
32
33PROGNAME=`basename $0`

--- 80 unchanged lines hidden (view full) ---

114 ndrgen_copy_header $i ${BASENAME}_ndr.c
115
116 cat - << EOF >> ${BASENAME}_ndr.c
117/*
118 * Please do not edit this file.
119 * It was generated using ndrgen.
120 */
121
124#pragma ident "@(#)${BASENAME}_ndr.c"
125
126#include <strings.h>
127#include <smbsrv/ndr.h>
128#include <smbsrv/ndl/$BASENAME.ndl>
129EOF
130
131 cat $BASENAME.raw >> ${BASENAME}_ndr.c
132
133 rm -f $BASENAME.raw
134 rm -f $TMP_NAME
135 else
136 rm -f $BASENAME.raw
137 rm -f $TMP_NAME
138 exit 1
139 fi
140done
122#include <strings.h>
123#include <smbsrv/ndr.h>
124#include <smbsrv/ndl/$BASENAME.ndl>
125EOF
126
127 cat $BASENAME.raw >> ${BASENAME}_ndr.c
128
129 rm -f $BASENAME.raw
130 rm -f $TMP_NAME
131 else
132 rm -f $BASENAME.raw
133 rm -f $TMP_NAME
134 exit 1
135 fi
136done