mkbuiltins (157413) | mkbuiltins (201053) |
---|---|
1#!/bin/sh - 2 3#- 4# Copyright (c) 1991, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# This code is derived from software contributed to Berkeley by 8# Kenneth Almquist. --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)mkbuiltins 8.2 (Berkeley) 5/4/95 | 1#!/bin/sh - 2 3#- 4# Copyright (c) 1991, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# This code is derived from software contributed to Berkeley by 8# Kenneth Almquist. --- 18 unchanged lines hidden (view full) --- 27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32# SUCH DAMAGE. 33# 34# @(#)mkbuiltins 8.2 (Berkeley) 5/4/95 |
35# $FreeBSD: head/bin/sh/mkbuiltins 157413 2006-04-02 18:43:33Z stefanf $ | 35# $FreeBSD: head/bin/sh/mkbuiltins 201053 2009-12-27 18:04:05Z jilles $ |
36 37temp=`/usr/bin/mktemp -t ka` 38havejobs=0 39if grep '^#define[ ]*JOBS[ ]*1' shell.h > /dev/null 40then havejobs=1 41fi 42havehist=1 43if [ "X$1" = "X-h" ]; then --- 39 unchanged lines hidden (view full) --- 83 */ 84 85#include <sys/cdefs.h> 86! 87tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ < $temp | 88 awk '{ printf "#define %s %d\n", $1, NR-1}' 89echo ' 90struct builtincmd { | 36 37temp=`/usr/bin/mktemp -t ka` 38havejobs=0 39if grep '^#define[ ]*JOBS[ ]*1' shell.h > /dev/null 40then havejobs=1 41fi 42havehist=1 43if [ "X$1" = "X-h" ]; then --- 39 unchanged lines hidden (view full) --- 83 */ 84 85#include <sys/cdefs.h> 86! 87tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ < $temp | 88 awk '{ printf "#define %s %d\n", $1, NR-1}' 89echo ' 90struct builtincmd { |
91 char *name; | 91 const char *name; |
92 int code; 93 int special; 94}; 95 96extern int (*const builtinfunc[])(int, char **); 97extern const struct builtincmd builtincmd[];' 98rm -f $temp | 92 int code; 93 int special; 94}; 95 96extern int (*const builtinfunc[])(int, char **); 97extern const struct builtincmd builtincmd[];' 98rm -f $temp |