Makefile revision 984
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Since upstream only offers the latest snapshot for download, without
# any way to retrieve a specific version, we just keep the currently
# shipped versions of these two text files directly in the gate and
# simply check in new versions to update them.
#
# When it's time to update, you can use these rules to download with
# correctly extracted and copied into the generated license files.
download::
@echo 'No downloads for this component'
$(ID_FILES):
# License files for packaging are generated during the build
TPNO_pci.ids.license = 7530
TPNO_usb.ids.license = 7831
# Extract the header up to the first blank line
$(MKDIR) $(@D)
$(GSED) -e '/^$$/ q' $< > $@
# Generate license files for each document by substituting in templates:
# __FILE_NAME_VERS__ replace with name & version of ids file
# __TPNO__ - Oracle tracking number
# __HEADER__ - read in contents of generated header file, then delete the
# __HEADER__ line
FILE_NAME_VERS="$${FILENAME}$${VERSION}" ; \
$(GSED) -e "s/__FILE_NAME_VERS__/$${FILE_NAME_VERS}/" \
-e 's/__TPNO__/$(TPNO_$(@F))/' \
test: $(NO_TESTS)