head	1.13;
access;
symbols
	RELENG_8_4:1.13.0.2
	RELENG_9_1_0_RELEASE:1.12.2.1.4.2
	RELENG_9_1:1.12.2.1.0.4
	RELENG_9_1_BP:1.12.2.1
	RELENG_8_3_0_RELEASE:1.10.22.1.8.1
	RELENG_8_3:1.10.22.1.0.8
	RELENG_8_3_BP:1.10.22.1
	RELENG_9_0_0_RELEASE:1.12.2.1.2.1
	RELENG_9_0:1.12.2.1.0.2
	RELENG_9_0_BP:1.12.2.1
	RELENG_9:1.12.0.2
	RELENG_9_BP:1.12
	RELENG_7_4_0_RELEASE:1.10.26.1
	RELENG_8_2_0_RELEASE:1.10.22.1.6.1
	RELENG_7_4:1.10.0.26
	RELENG_7_4_BP:1.10
	RELENG_8_2:1.10.22.1.0.6
	RELENG_8_2_BP:1.10.22.1
	RELENG_8_1_0_RELEASE:1.10.22.1.4.1
	RELENG_8_1:1.10.22.1.0.4
	RELENG_8_1_BP:1.10.22.1
	RELENG_7_3_0_RELEASE:1.10.24.1
	RELENG_7_3:1.10.0.24
	RELENG_7_3_BP:1.10
	RELENG_8_0_0_RELEASE:1.10.22.1.2.1
	RELENG_8_0:1.10.22.1.0.2
	RELENG_8_0_BP:1.10.22.1
	RELENG_8:1.10.0.22
	RELENG_8_BP:1.10
	RELENG_7_2_0_RELEASE:1.10.20.1
	RELENG_7_2:1.10.0.20
	RELENG_7_2_BP:1.10
	RELENG_7_1_0_RELEASE:1.10.18.1
	RELENG_6_4_0_RELEASE:1.10.16.1
	RELENG_7_1:1.10.0.18
	RELENG_7_1_BP:1.10
	RELENG_6_4:1.10.0.16
	RELENG_6_4_BP:1.10
	RELENG_7_0_0_RELEASE:1.10
	RELENG_6_3_0_RELEASE:1.10
	RELENG_7_0:1.10.0.14
	RELENG_7_0_BP:1.10
	RELENG_6_3:1.10.0.12
	RELENG_6_3_BP:1.10
	RELENG_7:1.10.0.10
	RELENG_7_BP:1.10
	RELENG_6_2_0_RELEASE:1.10
	RELENG_6_2:1.10.0.8
	RELENG_6_2_BP:1.10
	RELENG_5_5_0_RELEASE:1.9
	RELENG_5_5:1.9.0.8
	RELENG_5_5_BP:1.9
	RELENG_6_1_0_RELEASE:1.10
	RELENG_6_1:1.10.0.6
	RELENG_6_1_BP:1.10
	RELENG_6_0_0_RELEASE:1.10
	RELENG_6_0:1.10.0.4
	RELENG_6_0_BP:1.10
	RELENG_6:1.10.0.2
	RELENG_6_BP:1.10
	RELENG_5_4_0_RELEASE:1.9
	RELENG_5_4:1.9.0.6
	RELENG_5_4_BP:1.9
	RELENG_4_11_0_RELEASE:1.6.2.2
	RELENG_4_11:1.6.2.2.0.10
	RELENG_4_11_BP:1.6.2.2
	RELENG_5_3_0_RELEASE:1.9
	RELENG_5_3:1.9.0.4
	RELENG_5_3_BP:1.9
	RELENG_5:1.9.0.2
	RELENG_5_BP:1.9
	RELENG_4_10_0_RELEASE:1.6.2.2
	RELENG_4_10:1.6.2.2.0.8
	RELENG_4_10_BP:1.6.2.2
	RELENG_5_2_1_RELEASE:1.8
	RELENG_5_2_0_RELEASE:1.8
	RELENG_5_2:1.8.0.6
	RELENG_5_2_BP:1.8
	RELENG_4_9_0_RELEASE:1.6.2.2
	RELENG_4_9:1.6.2.2.0.6
	RELENG_4_9_BP:1.6.2.2
	RELENG_5_1_0_RELEASE:1.8
	RELENG_5_1:1.8.0.4
	RELENG_5_1_BP:1.8
	RELENG_4_8_0_RELEASE:1.6.2.2
	RELENG_4_8:1.6.2.2.0.4
	RELENG_4_8_BP:1.6.2.2
	RELENG_5_0_0_RELEASE:1.8
	RELENG_5_0:1.8.0.2
	RELENG_5_0_BP:1.8
	RELENG_4_7_0_RELEASE:1.6.2.2
	RELENG_4_7:1.6.2.2.0.2
	RELENG_4_7_BP:1.6.2.2
	RELENG_4_6_2_RELEASE:1.6.2.1
	RELENG_4_6_1_RELEASE:1.6.2.1
	RELENG_4_6_0_RELEASE:1.6.2.1
	RELENG_4_6:1.6.2.1.0.8
	RELENG_4_6_BP:1.6.2.1
	RELENG_4_5_0_RELEASE:1.6.2.1
	RELENG_4_5:1.6.2.1.0.6
	RELENG_4_5_BP:1.6.2.1
	RELENG_4_4_0_RELEASE:1.6.2.1
	RELENG_4_4:1.6.2.1.0.4
	RELENG_4_4_BP:1.6.2.1
	RELENG_4_3_0_RELEASE:1.6.2.1
	RELENG_4_3:1.6.2.1.0.2
	RELENG_4_3_BP:1.6.2.1
	RELENG_4_2_0_RELEASE:1.6
	RELENG_4_1_1_RELEASE:1.6
	PRE_SMPNG:1.6
	RELENG_4_1_0_RELEASE:1.6
	RELENG_3_5_0_RELEASE:1.5.2.1
	RELENG_4_0_0_RELEASE:1.6
	RELENG_4:1.6.0.2
	RELENG_4_BP:1.6
	RELENG_3_4_0_RELEASE:1.5.2.1
	RELENG_3_3_0_RELEASE:1.5.2.1
	RELENG_3_2_PAO:1.5.0.4
	RELENG_3_2_PAO_BP:1.5
	RELENG_3_2_0_RELEASE:1.5
	RELENG_3_1_0_RELEASE:1.5
	RELENG_3:1.5.0.2
	RELENG_3_BP:1.5
	RELENG_2_2_8_RELEASE:1.3.2.1
	RELENG_3_0_0_RELEASE:1.5
	RELENG_2_2_7_RELEASE:1.3
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.2
	bsd_44_lite_2:1.1.1.1
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.6
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.4
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.13
date	2012.11.17.01.48.32;	author svnexp;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2011.06.17.13.03.49;	author jilles;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2011.05.22.15.24.56;	author jilles;	state Exp;
branches;
next	1.10;

1.10
date	2005.01.10.08.39.25;	author imp;	state Exp;
branches
	1.10.2.1
	1.10.10.1
	1.10.16.1
	1.10.18.1
	1.10.20.1
	1.10.22.1
	1.10.24.1
	1.10.26.1;
next	1.9;

1.9
date	2004.04.06.20.06.51;	author markm;	state Exp;
branches;
next	1.8;

1.8
date	2002.06.20.05.20.50;	author jmallett;	state Exp;
branches;
next	1.7;

1.7
date	2000.11.22.11.05.51;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	99.08.27.23.15.19;	author peter;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	97.02.22.13.58.37;	author peter;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.01.14.05.33.20;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.09.01.10.20.58;	author peter;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	94.09.24.02.57.58;	author davidg;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	94.05.26.06.18.45;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.13.2.1
date	2012.11.17.01.48.32;	author svnexp;	state dead;
branches;
next	1.13.2.2;

1.13.2.2
date	2013.03.28.13.00.06;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.12.2.1.2.1
	1.12.2.1.4.1;
next	1.12.2.2;

1.12.2.2
date	2012.11.17.11.36.04;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.12.2.1.2.2;

1.12.2.1.2.2
date	2012.11.17.08.36.05;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.12.2.1.4.2;

1.12.2.1.4.2
date	2012.11.17.08.46.54;	author svnexp;	state Exp;
branches;
next	;

1.10.2.1
date	2012.11.17.07.38.38;	author svnexp;	state Exp;
branches;
next	;

1.10.10.1
date	2012.11.17.08.00.50;	author svnexp;	state Exp;
branches;
next	;

1.10.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.10.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.10.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.10.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.10.22.1.2.1
	1.10.22.1.4.1
	1.10.22.1.6.1
	1.10.22.1.8.1;
next	1.10.22.2;

1.10.22.2
date	2012.11.17.10.35.49;	author svnexp;	state Exp;
branches;
next	;

1.10.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.10.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.10.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.10.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.10.22.1.8.2;

1.10.22.1.8.2
date	2012.11.17.08.24.32;	author svnexp;	state Exp;
branches;
next	;

1.10.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.10.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.10.26.2;

1.10.26.2
date	2012.11.17.08.16.32;	author svnexp;	state Exp;
branches;
next	;

1.6.2.1
date	2001.02.18.02.10.18;	author kris;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2002.07.19.04.38.51;	author tjr;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	2012.11.17.07.22.05;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	99.08.29.14.13.54;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	98.11.03.15.57.36;	author cracauer;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	99.09.05.10.59.53;	author peter;	state Exp;
branches;
next	;

1.2.6.1
date	99.09.05.11.01.46;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.26.06.18.46;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Switching exporter and resync
@
text
@#!/bin/sh -

#-
# Copyright (c) 1991, 1993
#	The Regents of the University of California.  All rights reserved.
#
# This code is derived from software contributed to Berkeley by
# Kenneth Almquist.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@@(#)mktokens	8.1 (Berkeley) 5/31/93
# $FreeBSD: head/bin/sh/mktokens 223186 2011-06-17 13:03:49Z jilles $

# The following is a list of tokens.  The second column is nonzero if the
# token marks the end of a list.  The third column is the name to print in
# error messages.

temp=`/usr/bin/mktemp -t ka`
cat > $temp <<\!
TEOF	1	end of file
TNL	0	newline
TSEMI	0	";"
TBACKGND 0	"&"
TAND	0	"&&"
TOR	0	"||"
TPIPE	0	"|"
TLP	0	"("
TRP	1	")"
TENDCASE 1	";;"
TFALLTHRU 1	";&"
TREDIR	0	redirection
TWORD	0	word
TIF	0	"if"
TTHEN	1	"then"
TELSE	1	"else"
TELIF	1	"elif"
TFI	1	"fi"
TWHILE	0	"while"
TUNTIL	0	"until"
TFOR	0	"for"
TDO	1	"do"
TDONE	1	"done"
TBEGIN	0	"{"
TEND	1	"}"
TCASE	0	"case"
TESAC	1	"esac"
TNOT	0	"!"
!
nl=`wc -l $temp`
exec > token.h
awk '{print "#define " $1 " " NR-1}' $temp
echo '
/* Array indicating which tokens mark the end of a list */
const char tokendlist[] = {'
awk '{print "\t" $2 ","}' $temp
echo '};

const char *const tokname[] = {'
sed -e 's/"/\\"/g' \
    -e 's/[^	 ]*[	 ][	 ]*[^	 ]*[	 ][	 ]*\(.*\)/	"\1",/' \
    $temp
echo '};
'
sed 's/"//g' $temp | awk '
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "const char *const parsekwd[] = {"}
/TIF/,/neverfound/{print "	\"" $3 "\","}'
echo '	0
};'

rm $temp
@


1.13.2.1
log
@file mktokens was added on branch RELENG_8_4 on 2013-03-28 13:00:06 +0000
@
text
@d1 93
@


1.13.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 93
#!/bin/sh -

#-
# Copyright (c) 1991, 1993
#	The Regents of the University of California.  All rights reserved.
#
# This code is derived from software contributed to Berkeley by
# Kenneth Almquist.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@@(#)mktokens	8.1 (Berkeley) 5/31/93
# $FreeBSD: releng/8.4/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $

# The following is a list of tokens.  The second column is nonzero if the
# token marks the end of a list.  The third column is the name to print in
# error messages.

temp=`/usr/bin/mktemp -t ka`
cat > $temp <<\!
TEOF	1	end of file
TNL	0	newline
TSEMI	0	";"
TBACKGND 0	"&"
TAND	0	"&&"
TOR	0	"||"
TPIPE	0	"|"
TLP	0	"("
TRP	1	")"
TENDCASE 1	";;"
TENDBQUOTE 1	"`"
TREDIR	0	redirection
TWORD	0	word
TIF	0	"if"
TTHEN	1	"then"
TELSE	1	"else"
TELIF	1	"elif"
TFI	1	"fi"
TWHILE	0	"while"
TUNTIL	0	"until"
TFOR	0	"for"
TDO	1	"do"
TDONE	1	"done"
TBEGIN	0	"{"
TEND	1	"}"
TCASE	0	"case"
TESAC	1	"esac"
TNOT	0	"!"
!
nl=`wc -l $temp`
exec > token.h
awk '{print "#define " $1 " " NR-1}' $temp
echo '
/* Array indicating which tokens mark the end of a list */
const char tokendlist[] = {'
awk '{print "\t" $2 ","}' $temp
echo '};

const char *const tokname[] = {'
sed -e 's/"/\\"/g' \
    -e 's/[^	 ]*[	 ][	 ]*[^	 ]*[	 ][	 ]*\(.*\)/	"\1",/' \
    $temp
echo '};
'
sed 's/"//g' $temp | awk '
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "const char *const parsekwd[] = {"}
/TIF/,/neverfound/{print "	\"" $3 "\","}'
echo '	0
};'

rm $temp
@


1.12
log
@SVN rev 223186 on 2011-06-17 13:03:49Z by jilles

sh: Add case statement fallthrough (with ';&' instead of ';;').

Replacing ;; with the new control operator ;& will cause the next list to be
executed as well without checking its pattern, continuing until a list ends
with ;; or until the end of the case statement. This is like omitting
"break" in a C "switch" statement.

The sequence ;& was formerly invalid.

This feature is proposed for the next POSIX issue in Austin Group issue
#449.
@
text
@d35 1
a35 1
# $FreeBSD$
@


1.12.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d35 1
a35 1
# $FreeBSD: stable/9/bin/sh/mktokens 223186 2011-06-17 13:03:49Z jilles $
@


1.12.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.12.2.1.4.2
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: releng/9.1/bin/sh/mktokens 223186 2011-06-17 13:03:49Z jilles $
@


1.12.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.1.2.2
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: releng/9.0/bin/sh/mktokens 223186 2011-06-17 13:03:49Z jilles $
@


1.11
log
@SVN rev 222182 on 2011-05-22 15:24:56Z by jilles

sh: Remove obsolete token type TENDBQUOTE.

This token type was related to Almquist's original version of backquotes
that could not nest and fell into disuse fairly soon.
@
text
@d53 1
@


1.10
log
@/*- or .\"- or #- to begin license clauses.
@
text
@a52 1
TENDBQUOTE 1	"`"
@


1.10.10.1
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: stable/7/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $
@


1.10.2.1
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: stable/6/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $
@


1.10.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.10.26.2
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: releng/7.4/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $
@


1.10.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.10.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.10.22.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d35 1
a35 1
# $FreeBSD: stable/8/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $
@


1.10.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.10.22.1.8.2
log
@Switch importer
@
text
@d35 1
a35 1
# $FreeBSD: releng/8.3/bin/sh/mktokens 139969 2005-01-10 08:39:26Z imp $
@


1.10.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.10.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.10.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.10.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.10.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.10.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.9
log
@Remove clause 3 from the UCB licenses.

OK'ed by:	imp, core
@
text
@d2 2
a3 1
#
@


1.8
log
@Minor const cleanup.

Don't discard qualifiers we don't need to discard.
@
text
@a16 4
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
@


1.7
log
@Use secure temporary filenames during build.

Audited by:	markm, cracauer
@
text
@d38 1
a38 1
# $FreeBSD: src/bin/sh/mktokens,v 1.6 1999/08/27 23:15:19 peter Exp $
d84 1
a84 1
char *const tokname[] = {'
d91 1
a91 1
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "char *const parsekwd[] = {"}
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d38 1
a38 1
# $FreeBSD$
d44 2
a45 1
cat > /tmp/ka$$ <<\!
d75 1
a75 1
nl=`wc -l /tmp/ka$$`
d77 1
a77 1
awk '{print "#define " $1 " " NR-1}' /tmp/ka$$
d81 1
a81 1
awk '{print "\t" $2 ","}' /tmp/ka$$
d87 1
a87 1
    /tmp/ka$$
d90 1
a90 1
sed 's/"//g' /tmp/ka$$ | awk '
d96 1
a96 1
rm /tmp/ka$$
@


1.6.2.1
log
@MFC: Use secure tempfiles during build
@
text
@d38 1
a38 1
# $FreeBSD: src/bin/sh/mktokens,v 1.6 1999/08/27 23:15:19 peter Exp $
d44 1
a44 2
temp=`/usr/bin/mktemp -t ka`
cat > $temp <<\!
d74 1
a74 1
nl=`wc -l $temp`
d76 1
a76 1
awk '{print "#define " $1 " " NR-1}' $temp
d80 1
a80 1
awk '{print "\t" $2 ","}' $temp
d86 1
a86 1
    $temp
d89 1
a89 1
sed 's/"//g' $temp | awk '
d95 1
a95 1
rm $temp
@


1.6.2.2
log
@Sync with HEAD, except that printf(1) is still a shell builtin and old
libedit history interface is still used. This gives the following
new features/bug fixes:
 - Quote output of alias, export, readonly builtins
 - -L (logical) and -P (physical) options added to cd and pwd, logical
   behaviour made default.
 - -C (noclobber) option and >>| redirection is implemented
 - hash builtin only shows normal commands, no functions or builtins
 - -u (nounset) option is implemented
 - fc builtin's -e option works correctly again
 - No longer assumes there is a tty on fd 2 (PR 36671)
 - fg/bg command show more info about job being manipulated
 - -l and -s options added to jobs builtin, output closer to POSIX spec.
 - %+ (current job) %- (previous job) and %? (substring) job ID's implemented
 - >&- (and similar) redirection operators close descriptors correctly
 - set +o output corrected
 - Style: __FBSDID, __P removal, ANSI-style function declarations
@
text
@d38 1
a38 1
# $FreeBSD$
d84 1
a84 1
const char *const tokname[] = {'
d91 1
a91 1
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "const char *const parsekwd[] = {"}
@


1.6.2.3
log
@Switch importer
@
text
@d38 1
a38 1
# $FreeBSD: stable/4/bin/sh/mktokens 100343 2002-07-19 04:38:54Z tjr $
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d38 1
a38 1
#	$Id$
@


1.5.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d38 1
a38 1
# $FreeBSD$
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d38 1
a38 1
#	$FreeBSD$
@


1.3
log
@Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning.  This is a
merge of parallel duplicate work by Steve Price and myself. :-]

There are some changes to the build that are my fault...  mkinit.c was
trying (poorly) to duplicate some of the work that make(1) is designed to
do.  The Makefile hackery is my fault too, the depend list was incomplete
because of some explicit OBJS+= entries, so mkdep wasn't picking up their
source file #includes.

This closes a pile of /bin/sh PR's, but not all of them..

Submitted by: Steve Price <steve@@bonsai.hiwaay.net>, peter
@
text
@d38 1
a38 1
#	$Id: mktokens,v 1.2 1994/09/24 02:57:58 davidg Exp $
@


1.3.2.1
log
@Merge remaining -current fixes into -stable.
Obtained from: Most fixes in this diff are by Tor Egge
@
text
@d38 1
a38 1
#	$Id: mktokens,v 1.5 1997/02/22 13:58:37 peter Exp $
@


1.3.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d38 1
a38 1
# $FreeBSD$
@


1.2
log
@Added $Id$
@
text
@d38 1
a38 1
#	$Id$
d75 1
a75 1
exec > token.def
@


1.2.6.1
log
@$Id$ -> $FreeBSD$
@
text
@d38 1
a38 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d38 1
@


1.1.1.1
log
@BSD 4.4 Lite bin Sources
@
text
@@
