Deleted Added
full compact
usbdevs2h.awk (93569) usbdevs2h.awk (128302)
1#! /usr/bin/awk -f
2# $NetBSD: usb/devlist2h.awk,v 1.9 2001/01/18 20:28:22 jdolecek Exp $
1#! /usr/bin/awk -f
2# $NetBSD: usb/devlist2h.awk,v 1.9 2001/01/18 20:28:22 jdolecek Exp $
3# $FreeBSD: head/sys/tools/usbdevs2h.awk 93569 2002-04-01 19:22:04Z joe $
3# $FreeBSD: head/sys/tools/usbdevs2h.awk 128302 2004-04-16 05:22:11Z obrien $
4#
5# Copyright (c) 1995, 1996 Christopher G. Demetriou
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright

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

37}
38NR == 1 {
39 VERSION = $0
40 gsub("\\$", "", VERSION)
41
42 if (os == "NetBSD")
43 printf("/*\t\$NetBSD\$\t*/\n\n") > dfile
44 else if (os == "FreeBSD")
4#
5# Copyright (c) 1995, 1996 Christopher G. Demetriou
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright

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

37}
38NR == 1 {
39 VERSION = $0
40 gsub("\\$", "", VERSION)
41
42 if (os == "NetBSD")
43 printf("/*\t\$NetBSD\$\t*/\n\n") > dfile
44 else if (os == "FreeBSD")
45 printf("/*\t\$FreeBSD\$\t*/\n\n") > dfile
45 printf("/* \$FreeBSD\$ */\n\n") > dfile
46 else if (os == "OpenBSD")
47 printf("/*\t\$OpenBSD\$\t*/\n\n") > dfile
48 else
49 printf("/* ??? */\n\n") > dfile
50 printf("/*\n") > dfile
51 printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
52 > dfile
53 printf(" *\n") > dfile
54 printf(" * generated from:\n") > dfile
55 printf(" *\t%s\n", VERSION) > dfile
56 printf(" */\n") > dfile
57
58 if (os == "NetBSD")
59 printf("/*\t\$NetBSD\$\t*/\n\n") > hfile
60 else if (os == "FreeBSD")
46 else if (os == "OpenBSD")
47 printf("/*\t\$OpenBSD\$\t*/\n\n") > dfile
48 else
49 printf("/* ??? */\n\n") > dfile
50 printf("/*\n") > dfile
51 printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
52 > dfile
53 printf(" *\n") > dfile
54 printf(" * generated from:\n") > dfile
55 printf(" *\t%s\n", VERSION) > dfile
56 printf(" */\n") > dfile
57
58 if (os == "NetBSD")
59 printf("/*\t\$NetBSD\$\t*/\n\n") > hfile
60 else if (os == "FreeBSD")
61 printf("/*\t\$FreeBSD\$\t*/\n\n") > hfile
61 printf("/* \$FreeBSD\$ */\n\n") > hfile
62 else if (os == "OpenBSD")
63 printf("/*\t\$OpenBSD\$\t*/\n\n") > hfile
64 else
65 printf("/* ??? */\n\n") > hfile
66 printf("/*\n") > hfile
67 printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
68 > hfile
69 printf(" *\n") > hfile

--- 167 unchanged lines hidden ---
62 else if (os == "OpenBSD")
63 printf("/*\t\$OpenBSD\$\t*/\n\n") > hfile
64 else
65 printf("/* ??? */\n\n") > hfile
66 printf("/*\n") > hfile
67 printf(" * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
68 > hfile
69 printf(" *\n") > hfile

--- 167 unchanged lines hidden ---