readme_revision revision 24b9abbad58fdd63dad716fd35a99a7944c4e3eb
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# Use is subject to license terms.
539f09715307281c85add36fb7a126bebc47dadeNicholas# CDDL HEADER START
539f09715307281c85add36fb7a126bebc47dadeNicholas# The contents of this file are subject to the terms of the
e2be19408a54a8ec1c9e810ea4eaa2f0ac7cda07george puckett# Common Development and Distribution License (the "License").
e2be19408a54a8ec1c9e810ea4eaa2f0ac7cda07george puckett# You may not use this file except in compliance with the License.
e2be19408a54a8ec1c9e810ea4eaa2f0ac7cda07george puckett# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
66bb198717df1905114577e51c0a58c040a4dfeaNicholas# See the License for the specific language governing permissions
66bb198717df1905114577e51c0a58c040a4dfeaNicholas# and limitations under the License.
4e10ce0fb16d86c41fc11c6105715c493055383dNicholas C. Zakas# When distributing Covered Code, include this CDDL HEADER in each
4e10ce0fb16d86c41fc11c6105715c493055383dNicholas C. Zakas# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e10ce0fb16d86c41fc11c6105715c493055383dNicholas C. Zakas# If applicable, add the following below this CDDL HEADER, with the
4e10ce0fb16d86c41fc11c6105715c493055383dNicholas C. Zakas# fields enclosed by brackets "[]" replaced with your own identifying
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# information: Portions Copyright [yyyy] [name of copyright owner]
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# CDDL HEADER END
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas#pragma ident "%Z%%M% %I% %E% SMI"
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# Generate a revision number for the sgs linker components, based
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# on usr/src/cmd/sgs/packages/common/SUNWonld-README.
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# usage: readme_revision [-d] [readme-file]
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# This revision number used to be the SCCS revision id for that file,
e9ee71cc3e50c936d1f244bb111ef0524037b397Nicholas C. Zakas# in the form 1.xxx (where xxx was the revision). There were two benefits:
# a replacement revision number, by returning the string '1.xxx', where
# If this is a debug/development build (-d option), then we include
$script = $_[$#_];
$debug = 1;
chomp $_;
$cnt++;
$last_cr = $1;