head 1.9; access; symbols netbsd-10-0-RELEASE:1.9 netbsd-10-0-RC6:1.9 netbsd-10-0-RC5:1.9 netbsd-10-0-RC4:1.9 netbsd-10-0-RC3:1.9 netbsd-10-0-RC2:1.9 thorpej-ifq:1.9.0.48 thorpej-ifq-base:1.9 thorpej-altq-separation:1.9.0.46 thorpej-altq-separation-base:1.9 netbsd-10-0-RC1:1.9 netbsd-10:1.9.0.44 netbsd-10-base:1.9 bouyer-sunxi-drm:1.9.0.42 bouyer-sunxi-drm-base:1.9 netbsd-9-3-RELEASE:1.9 thorpej-i2c-spi-conf2:1.9.0.40 thorpej-i2c-spi-conf2-base:1.9 thorpej-futex2:1.9.0.38 thorpej-futex2-base:1.9 thorpej-cfargs2:1.9.0.36 thorpej-cfargs2-base:1.9 cjep_sun2x-base1:1.9 cjep_sun2x:1.9.0.34 cjep_sun2x-base:1.9 cjep_staticlib_x-base1:1.9 netbsd-9-2-RELEASE:1.9 cjep_staticlib_x:1.9.0.32 cjep_staticlib_x-base:1.9 thorpej-i2c-spi-conf:1.9.0.30 thorpej-i2c-spi-conf-base:1.9 thorpej-cfargs:1.9.0.28 thorpej-cfargs-base:1.9 thorpej-futex:1.9.0.26 thorpej-futex-base:1.9 netbsd-9-1-RELEASE:1.9 bouyer-xenpvh-base2:1.9 phil-wifi-20200421:1.9 bouyer-xenpvh-base1:1.9 phil-wifi-20200411:1.9 bouyer-xenpvh:1.9.0.24 bouyer-xenpvh-base:1.9 is-mlppp:1.9.0.22 is-mlppp-base:1.9 phil-wifi-20200406:1.9 netbsd-8-2-RELEASE:1.9 ad-namecache-base3:1.9 netbsd-9-0-RELEASE:1.9 netbsd-9-0-RC2:1.9 ad-namecache-base2:1.9 ad-namecache-base1:1.9 ad-namecache:1.9.0.20 ad-namecache-base:1.9 netbsd-9-0-RC1:1.9 phil-wifi-20191119:1.9 netbsd-9:1.9.0.18 netbsd-9-base:1.9 phil-wifi-20190609:1.9 netbsd-8-1-RELEASE:1.9 netbsd-8-1-RC1:1.9 isaki-audio2:1.9.0.16 isaki-audio2-base:1.9 pgoyette-compat-merge-20190127:1.9 pgoyette-compat-20190127:1.9 pgoyette-compat-20190118:1.9 pgoyette-compat-1226:1.9 pgoyette-compat-1126:1.9 pgoyette-compat-1020:1.9 pgoyette-compat-0930:1.9 pgoyette-compat-0906:1.9 netbsd-7-2-RELEASE:1.8 pgoyette-compat-0728:1.9 netbsd-8-0-RELEASE:1.9 phil-wifi:1.9.0.14 phil-wifi-base:1.9 pgoyette-compat-0625:1.9 netbsd-8-0-RC2:1.9 pgoyette-compat-0521:1.9 pgoyette-compat-0502:1.9 pgoyette-compat-0422:1.9 netbsd-8-0-RC1:1.9 pgoyette-compat-0415:1.9 pgoyette-compat-0407:1.9 pgoyette-compat-0330:1.9 pgoyette-compat-0322:1.9 pgoyette-compat-0315:1.9 netbsd-7-1-2-RELEASE:1.8 pgoyette-compat:1.9.0.12 pgoyette-compat-base:1.9 netbsd-7-1-1-RELEASE:1.8 tls-maxphys-base-20171202:1.9 matt-nb8-mediatek:1.9.0.10 matt-nb8-mediatek-base:1.9 nick-nhusb-base-20170825:1.9 perseant-stdc-iso10646:1.9.0.8 perseant-stdc-iso10646-base:1.9 netbsd-8:1.9.0.6 netbsd-8-base:1.9 prg-localcount2-base3:1.9 prg-localcount2-base2:1.9 prg-localcount2-base1:1.9 prg-localcount2:1.9.0.4 prg-localcount2-base:1.9 pgoyette-localcount-20170426:1.9 bouyer-socketcan-base1:1.9 jdolecek-ncq:1.9.0.2 jdolecek-ncq-base:1.9 pgoyette-localcount-20170320:1.8 netbsd-7-1:1.8.0.42 netbsd-7-1-RELEASE:1.8 netbsd-7-1-RC2:1.8 nick-nhusb-base-20170204:1.8 netbsd-7-nhusb-base-20170116:1.8 bouyer-socketcan:1.8.0.40 bouyer-socketcan-base:1.8 pgoyette-localcount-20170107:1.8 netbsd-7-1-RC1:1.8 nick-nhusb-base-20161204:1.8 pgoyette-localcount-20161104:1.8 netbsd-7-0-2-RELEASE:1.8 nick-nhusb-base-20161004:1.8 localcount-20160914:1.8 netbsd-7-nhusb:1.8.0.38 netbsd-7-nhusb-base:1.8 pgoyette-localcount-20160806:1.8 pgoyette-localcount-20160726:1.8 pgoyette-localcount:1.8.0.36 pgoyette-localcount-base:1.8 nick-nhusb-base-20160907:1.8 nick-nhusb-base-20160529:1.8 netbsd-7-0-1-RELEASE:1.8 nick-nhusb-base-20160422:1.8 nick-nhusb-base-20160319:1.8 nick-nhusb-base-20151226:1.8 netbsd-7-0:1.8.0.34 netbsd-7-0-RELEASE:1.8 nick-nhusb-base-20150921:1.8 netbsd-7-0-RC3:1.8 netbsd-7-0-RC2:1.8 netbsd-7-0-RC1:1.8 nick-nhusb-base-20150606:1.8 nick-nhusb-base-20150406:1.8 nick-nhusb:1.8.0.32 nick-nhusb-base:1.8 netbsd-5-2-3-RELEASE:1.6 netbsd-5-1-5-RELEASE:1.6 netbsd-6-0-6-RELEASE:1.8 netbsd-6-1-5-RELEASE:1.8 netbsd-7:1.8.0.30 netbsd-7-base:1.8 yamt-pagecache-base9:1.8 yamt-pagecache-tag8:1.8 netbsd-6-1-4-RELEASE:1.8 netbsd-6-0-5-RELEASE:1.8 tls-earlyentropy:1.8.0.28 tls-earlyentropy-base:1.8 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8 riastradh-drm2-base3:1.8 netbsd-6-1-3-RELEASE:1.8 netbsd-6-0-4-RELEASE:1.8 netbsd-5-2-2-RELEASE:1.6 netbsd-5-1-4-RELEASE:1.6 netbsd-6-1-2-RELEASE:1.8 netbsd-6-0-3-RELEASE:1.8 netbsd-5-2-1-RELEASE:1.6 netbsd-5-1-3-RELEASE:1.6 rmind-smpnet-nbase:1.8 netbsd-6-1-1-RELEASE:1.8 riastradh-drm2-base2:1.8 riastradh-drm2-base1:1.8 riastradh-drm2:1.8.0.26 riastradh-drm2-base:1.8 rmind-smpnet:1.8.0.18 rmind-smpnet-base:1.8 netbsd-6-1:1.8.0.24 netbsd-6-0-2-RELEASE:1.8 netbsd-6-1-RELEASE:1.8 khorben-n900:1.8.0.22 netbsd-6-1-RC4:1.8 netbsd-6-1-RC3:1.8 agc-symver:1.8.0.20 agc-symver-base:1.8 netbsd-6-1-RC2:1.8 netbsd-6-1-RC1:1.8 yamt-pagecache-base8:1.8 netbsd-5-2:1.6.0.18 netbsd-6-0-1-RELEASE:1.8 yamt-pagecache-base7:1.8 netbsd-5-2-RELEASE:1.6 netbsd-5-2-RC1:1.6 matt-nb6-plus-nbase:1.8 yamt-pagecache-base6:1.8 netbsd-6-0:1.8.0.16 netbsd-6-0-RELEASE:1.8 netbsd-6-0-RC2:1.8 tls-maxphys:1.8.0.14 tls-maxphys-base:1.8 matt-nb6-plus:1.8.0.12 matt-nb6-plus-base:1.8 netbsd-6-0-RC1:1.8 jmcneill-usbmp-base10:1.8 yamt-pagecache-base5:1.8 jmcneill-usbmp-base9:1.8 yamt-pagecache-base4:1.8 jmcneill-usbmp-base8:1.8 jmcneill-usbmp-base7:1.8 jmcneill-usbmp-base6:1.8 jmcneill-usbmp-base5:1.8 jmcneill-usbmp-base4:1.8 jmcneill-usbmp-base3:1.8 jmcneill-usbmp-pre-base2:1.8 jmcneill-usbmp-base2:1.8 netbsd-6:1.8.0.10 netbsd-6-base:1.8 netbsd-5-1-2-RELEASE:1.6 netbsd-5-1-1-RELEASE:1.6 jmcneill-usbmp:1.8.0.8 jmcneill-usbmp-base:1.8 jmcneill-audiomp3:1.8.0.6 jmcneill-audiomp3-base:1.8 yamt-pagecache-base3:1.8 yamt-pagecache-base2:1.8 yamt-pagecache:1.8.0.4 yamt-pagecache-base:1.8 rmind-uvmplock-nbase:1.8 cherry-xenmp:1.8.0.2 cherry-xenmp-base:1.8 uebayasi-xip-base7:1.8 bouyer-quota2-nbase:1.8 bouyer-quota2:1.7.0.8 bouyer-quota2-base:1.8 jruoho-x86intr:1.7.0.6 jruoho-x86intr-base:1.7 matt-mips64-premerge-20101231:1.7 matt-nb5-mips64-premerge-20101231:1.6 matt-nb5-pq3:1.6.0.16 matt-nb5-pq3-base:1.6 netbsd-5-1:1.6.0.14 uebayasi-xip-base6:1.7 uebayasi-xip-base5:1.7 netbsd-5-1-RELEASE:1.6 uebayasi-xip-base4:1.7 uebayasi-xip-base3:1.7 yamt-nfs-mp-base11:1.7 netbsd-5-1-RC4:1.6 matt-nb5-mips64-k15:1.6 uebayasi-xip-base2:1.7 yamt-nfs-mp-base10:1.7 netbsd-5-1-RC3:1.6 netbsd-5-1-RC2:1.6 uebayasi-xip-base1:1.7 netbsd-5-1-RC1:1.6 rmind-uvmplock:1.7.0.4 rmind-uvmplock-base:1.8 yamt-nfs-mp-base9:1.7 uebayasi-xip:1.7.0.2 uebayasi-xip-base:1.7 netbsd-5-0-2-RELEASE:1.6 matt-nb5-mips64-premerge-20091211:1.6 matt-premerge-20091211:1.7 yamt-nfs-mp-base8:1.7 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.6 matt-nb4-mips64-k7-u2a-k9b:1.6 matt-nb5-mips64-u1-k1-k5:1.6 yamt-nfs-mp-base7:1.7 matt-nb5-mips64:1.6.0.12 netbsd-5-0-1-RELEASE:1.6 jymxensuspend-base:1.7 yamt-nfs-mp-base6:1.7 yamt-nfs-mp-base5:1.7 yamt-nfs-mp-base4:1.7 jym-xensuspend-nbase:1.7 yamt-nfs-mp-base3:1.7 nick-hppapmap-base4:1.7 nick-hppapmap-base3:1.7 netbsd-5-0:1.6.0.10 netbsd-5-0-RELEASE:1.6 netbsd-5-0-RC4:1.6 netbsd-5-0-RC3:1.6 nick-hppapmap-base2:1.7 netbsd-5-0-RC2:1.6 jym-xensuspend:1.6.0.8 jym-xensuspend-base:1.7 netbsd-5-0-RC1:1.6 haad-dm-base2:1.6 haad-nbase2:1.6 ad-audiomp2:1.6.0.6 ad-audiomp2-base:1.6 netbsd-5:1.6.0.4 netbsd-5-base:1.6 nick-hppapmap:1.6.0.2 nick-hppapmap-base:1.7 matt-mips64-base2:1.6 matt-mips64:1.4.0.130 haad-dm-base1:1.6 wrstuden-revivesa-base-4:1.6 netbsd-4-0-1-RELEASE:1.4 wrstuden-revivesa-base-3:1.6 wrstuden-revivesa-base-2:1.6 wrstuden-fixsa-newbase:1.4 nick-csl-alignment-base5:1.4 haad-dm:1.5.0.6 haad-dm-base:1.6 wrstuden-revivesa-base-1:1.5 simonb-wapbl-nbase:1.6 yamt-pf42-base4:1.5 simonb-wapbl:1.5.0.4 simonb-wapbl-base:1.6 yamt-pf42-base3:1.5 hpcarm-cleanup-nbase:1.5 yamt-pf42-baseX:1.4 yamt-pf42-base2:1.5 yamt-nfs-mp-base2:1.5 wrstuden-revivesa:1.5.0.2 wrstuden-revivesa-base:1.5 yamt-nfs-mp:1.4.0.128 yamt-nfs-mp-base:1.4 yamt-pf42:1.4.0.126 yamt-pf42-base:1.4 ad-socklock-base1:1.4 yamt-lazymbuf-base15:1.4 yamt-lazymbuf-base14:1.4 keiichi-mipv6-nbase:1.4 mjf-devfs2:1.4.0.124 mjf-devfs2-base:1.6 nick-net80211-sync:1.4.0.122 nick-net80211-sync-base:1.4 keiichi-mipv6:1.4.0.120 keiichi-mipv6-base:1.4 bouyer-xeni386-merge1:1.4 matt-armv6-prevmlocking:1.4 wrstuden-fixsa-base-1:1.4 vmlocking2-base3:1.4 netbsd-4-0:1.4.0.118 netbsd-4-0-RELEASE:1.4 bouyer-xeni386-nbase:1.4 yamt-kmem-base3:1.4 cube-autoconf:1.4.0.116 cube-autoconf-base:1.4 yamt-kmem-base2:1.4 bouyer-xeni386:1.4.0.114 bouyer-xeni386-base:1.4 yamt-kmem:1.4.0.112 yamt-kmem-base:1.4 vmlocking2-base2:1.4 reinoud-bufcleanup-nbase:1.4 vmlocking2:1.4.0.110 vmlocking2-base1:1.4 netbsd-4-0-RC5:1.4 matt-nb4-arm:1.4.0.108 matt-nb4-arm-base:1.4 matt-armv6-nbase:1.4 jmcneill-base:1.4 netbsd-4-0-RC4:1.4 mjf-devfs:1.4.0.106 mjf-devfs-base:1.4 bouyer-xenamd64-base2:1.4 vmlocking-nbase:1.4 yamt-x86pmap-base4:1.4 bouyer-xenamd64:1.4.0.104 bouyer-xenamd64-base:1.4 netbsd-4-0-RC3:1.4 yamt-x86pmap-base3:1.4 yamt-x86pmap-base2:1.4 netbsd-4-0-RC2:1.4 yamt-x86pmap:1.4.0.102 yamt-x86pmap-base:1.4 netbsd-4-0-RC1:1.4 matt-armv6:1.4.0.100 matt-armv6-base:1.4 matt-mips64-base:1.4 jmcneill-pm:1.4.0.98 jmcneill-pm-base:1.4 hpcarm-cleanup:1.4.0.96 hpcarm-cleanup-base:1.4 nick-csl-alignment:1.4.0.94 nick-csl-alignment-base:1.4 netbsd-3-1-1-RELEASE:1.4 netbsd-3-0-3-RELEASE:1.4 yamt-idlelwp-base8:1.4 wrstuden-fixsa:1.4.0.92 wrstuden-fixsa-base:1.4 thorpej-atomic:1.4.0.90 thorpej-atomic-base:1.4 reinoud-bufcleanup:1.4.0.88 reinoud-bufcleanup-base:1.4 mjf-ufs-trans:1.4.0.86 mjf-ufs-trans-base:1.4 vmlocking:1.4.0.84 vmlocking-base:1.4 ad-audiomp:1.4.0.82 ad-audiomp-base:1.4 yamt-idlelwp:1.4.0.80 post-newlock2-merge:1.4 newlock2-nbase:1.4 yamt-splraiseipl-base5:1.4 yamt-splraiseipl-base4:1.4 yamt-splraiseipl-base3:1.4 abandoned-netbsd-4-base:1.4 abandoned-netbsd-4:1.4.0.70 netbsd-3-1:1.4.0.76 netbsd-3-1-RELEASE:1.4 netbsd-3-0-2-RELEASE:1.4 yamt-splraiseipl-base2:1.4 netbsd-3-1-RC4:1.4 yamt-splraiseipl:1.4.0.74 yamt-splraiseipl-base:1.4 netbsd-3-1-RC3:1.4 yamt-pdpolicy-base9:1.4 newlock2:1.4.0.72 newlock2-base:1.4 yamt-pdpolicy-base8:1.4 netbsd-3-1-RC2:1.4 netbsd-3-1-RC1:1.4 yamt-pdpolicy-base7:1.4 netbsd-4:1.4.0.78 netbsd-4-base:1.4 yamt-pdpolicy-base6:1.4 chap-midi-nbase:1.4 netbsd-3-0-1-RELEASE:1.4 gdamore-uart:1.4.0.68 gdamore-uart-base:1.4 simonb-timcounters-final:1.4 yamt-pdpolicy-base5:1.4 chap-midi:1.4.0.66 chap-midi-base:1.4 yamt-pdpolicy-base4:1.4 yamt-pdpolicy-base3:1.4 peter-altq-base:1.4 peter-altq:1.4.0.64 yamt-pdpolicy-base2:1.4 elad-kernelauth-base:1.4 elad-kernelauth:1.4.0.62 yamt-pdpolicy:1.4.0.60 yamt-pdpolicy-base:1.4 yamt-uio_vmspace-base5:1.4 simonb-timecounters:1.4.0.58 simonb-timecounters-base:1.4 rpaulo-netinet-merge-pcb:1.4.0.56 rpaulo-netinet-merge-pcb-base:1.4 yamt-uio_vmspace:1.4.0.54 netbsd-3-0:1.4.0.52 netbsd-3-0-RELEASE:1.4 netbsd-3-0-RC6:1.4 yamt-readahead-base3:1.4 netbsd-3-0-RC5:1.4 netbsd-3-0-RC4:1.4 netbsd-3-0-RC3:1.4 yamt-readahead-base2:1.4 netbsd-3-0-RC2:1.4 yamt-readahead-pervnode:1.4 yamt-readahead-perfile:1.4 yamt-readahead:1.4.0.50 yamt-readahead-base:1.4 netbsd-3-0-RC1:1.4 yamt-vop-base3:1.4 netbsd-2-0-3-RELEASE:1.4 netbsd-2-1:1.4.0.48 yamt-vop-base2:1.4 thorpej-vnode-attr:1.4.0.46 thorpej-vnode-attr-base:1.4 netbsd-2-1-RELEASE:1.4 yamt-vop:1.4.0.44 yamt-vop-base:1.4 netbsd-2-1-RC6:1.4 netbsd-2-1-RC5:1.4 netbsd-2-1-RC4:1.4 netbsd-2-1-RC3:1.4 netbsd-2-1-RC2:1.4 netbsd-2-1-RC1:1.4 yamt-lazymbuf:1.4.0.42 yamt-km-base4:1.4 netbsd-2-0-2-RELEASE:1.4 yamt-km-base3:1.4 netbsd-3:1.4.0.40 netbsd-3-base:1.4 yamt-km-base2:1.4 yamt-km:1.4.0.36 yamt-km-base:1.4 kent-audio2:1.4.0.34 kent-audio2-base:1.4 netbsd-2-0-1-RELEASE:1.4 kent-audio1-beforemerge:1.4 netbsd-2:1.4.0.32 netbsd-2-base:1.4 kent-audio1:1.4.0.30 kent-audio1-base:1.4 netbsd-2-0-RELEASE:1.4 netbsd-2-0-RC5:1.4 netbsd-2-0-RC4:1.4 netbsd-2-0-RC3:1.4 netbsd-2-0-RC2:1.4 netbsd-2-0-RC1:1.4 netbsd-2-0:1.4.0.28 netbsd-2-0-base:1.4 netbsd-1-6-PATCH002-RELEASE:1.4 netbsd-1-6-PATCH002:1.4 netbsd-1-6-PATCH002-RC4:1.4 netbsd-1-6-PATCH002-RC3:1.4 netbsd-1-6-PATCH002-RC2:1.4 netbsd-1-6-PATCH002-RC1:1.4 ktrace-lwp:1.4.0.26 ktrace-lwp-base:1.4 netbsd-1-6-PATCH001:1.4 netbsd-1-6-PATCH001-RELEASE:1.4 netbsd-1-6-PATCH001-RC3:1.4 netbsd-1-6-PATCH001-RC2:1.4 netbsd-1-6-PATCH001-RC1:1.4 nathanw_sa_end:1.4 nathanw_sa_before_merge:1.4 fvdl_fs64_base:1.4 gmcgarry_ctxsw:1.4.0.24 gmcgarry_ctxsw_base:1.4 gmcgarry_ucred:1.4.0.22 gmcgarry_ucred_base:1.4 nathanw_sa_base:1.4 kqueue-aftermerge:1.4 kqueue-beforemerge:1.4 netbsd-1-6-RELEASE:1.4 netbsd-1-6-RC3:1.4 netbsd-1-6-RC2:1.4 netbsd-1-6-RC1:1.4 netbsd-1-6:1.4.0.20 netbsd-1-6-base:1.4 gehenna-devsw:1.4.0.18 gehenna-devsw-base:1.4 eeh-devprop:1.4.0.16 eeh-devprop-base:1.4 newlock:1.4.0.14 newlock-base:1.4 ifpoll-base:1.4 thorpej-mips-cache:1.4.0.10 thorpej-mips-cache-base:1.4 thorpej-devvp-base3:1.4 thorpej-devvp-base2:1.4 post-chs-ubcperf:1.4 pre-chs-ubcperf:1.4 thorpej-devvp:1.4.0.8 thorpej-devvp-base:1.4 kqueue:1.4.0.6 kqueue-base:1.4 thorpej_scsipi_beforemerge:1.4 nathanw_sa:1.4.0.4 thorpej_scsipi_nbase:1.4 thorpej_scsipi_base:1.4 thorpej_scsipi:1.4.0.2; locks; strict; comment @# @; 1.9 date 2017.04.08.19.53.54; author christos; state Exp; branches; next 1.8; commitid BdvMW5JzBgY6GLMz; 1.8 date 2011.01.22.19.19.25; author joerg; state Exp; branches 1.8.14.1 1.8.32.1 1.8.36.1 1.8.40.1; next 1.7; 1.7 date 2009.02.20.13.41.27; author yamt; state Exp; branches 1.7.4.1 1.7.6.1 1.7.8.1; next 1.6; 1.6 date 2008.07.15.20.10.06; author perry; state Exp; branches 1.6.2.1 1.6.8.1; next 1.5; 1.5 date 2008.04.30.13.10.59; author martin; state Exp; branches 1.5.2.1 1.5.4.1 1.5.6.1; next 1.4; 1.4 date 2000.08.23.07.15.20; author mrg; state Exp; branches 1.4.2.1 1.4.124.1 1.4.126.1 1.4.128.1; next 1.3; 1.3 date 2000.07.13.22.04.44; author jdolecek; state Exp; branches; next 1.2; 1.2 date 2000.07.12.22.19.57; author jdolecek; state Exp; branches; next 1.1; 1.1 date 2000.07.12.20.57.42; author jdolecek; state Exp; branches; next ; 1.8.14.1 date 2017.12.03.11.36.57; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.8.32.1 date 2017.08.28.17.52.00; author skrll; state Exp; branches; next ; commitid UQQpnjvcNkUZn05A; 1.8.36.1 date 2017.04.26.02.53.10; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.8.40.1 date 2017.04.21.16.53.44; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; 1.7.4.1 date 2011.03.05.20.52.58; author rmind; state Exp; branches; next ; 1.7.6.1 date 2011.06.06.09.07.36; author jruoho; state Exp; branches; next ; 1.7.8.1 date 2011.02.08.16.19.48; author bouyer; state Exp; branches; next ; 1.6.2.1 date 2009.03.03.18.30.30; author skrll; state Exp; branches; next ; 1.6.8.1 date 2009.05.13.17.19.04; author jym; state Exp; branches; next ; 1.5.2.1 date 2008.09.18.04.36.46; author wrstuden; state Exp; branches; next ; 1.5.4.1 date 2008.07.18.16.37.31; author simonb; state Exp; branches; next ; 1.5.6.1 date 2008.10.19.22.16.18; author haad; state Exp; branches; next ; 1.4.2.1 date 2000.08.23.07.15.20; author bouyer; state dead; branches; next 1.4.2.2; 1.4.2.2 date 2000.11.20.18.08.45; author bouyer; state Exp; branches; next ; 1.4.124.1 date 2008.06.02.13.23.10; author mjf; state Exp; branches; next 1.4.124.2; 1.4.124.2 date 2008.09.28.10.40.17; author mjf; state Exp; branches; next ; 1.4.126.1 date 2008.05.18.12.33.29; author yamt; state Exp; branches; next ; 1.4.128.1 date 2008.05.16.02.23.48; author yamt; state Exp; branches; next 1.4.128.2; 1.4.128.2 date 2009.05.04.08.12.29; author yamt; state Exp; branches; next ; desc @@ 1.9 log @Add makefile snippet for vers.c building. @ text @#!/bin/sh - # # $NetBSD: newvers_stand.sh,v 1.8 2011/01/22 19:19:25 joerg Exp $ # # Copyright (c) 2000 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation # by Jaromir Dolecek. # # 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. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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. # Script for generating of vers.c file from given template. Used in # bootblock build on various architectures. # # Called as: # sh ${S}/conf/newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE [EXTRA_MSG] cwd=$(dirname "$0") add_name=true add_date=true add_kernrev=true machine="unknown" dateargs= # parse command args while getopts "m:D:dknm:" OPT; do case $OPT in D) dateargs="-r $OPTARG";; d) add_date=false;; k) add_kernrev=false;; m) machine=${OPTARG};; n) add_name=false;; *) echo "Usage: newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE EXTRA_COMMENT" >&2 exit 1;; esac done shift $(expr $OPTIND - 1) r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1") shift t=$(LC_ALL=C TZ=UTC date $dateargs) if $add_date; then echo "const char bootprog_rev[] = \"${r} (${t})\";" > vers.c else echo "const char bootprog_rev[] = \"${r}\";" > vers.c fi if $add_name; then extra=${1:+" $1"} echo "const char bootprog_name[] = \"NetBSD/${machine}${extra}\";" >> vers.c fi if $add_kernrev; then osr=$(sh "${cwd}/osrelease.sh") echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.8 log @Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly disabled by -D) from the output of newvers_stand.sh. Change -D to the inverted logic, so that it adds the date to bootprog_rev in (). Change all platforms accordingly. -D is added if MKREPRO is not yes and wasn't present before. Platforms that didn't use -D don't depend on MKREPRO now either. @ text @d3 1 a3 1 # $NetBSD: src/sys/conf/newvers_stand.sh,v 1.7 2009-02-20 13:41:27 yamt Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-N] VERSION_FILE ARCH [EXTRA_MSG] d38 1 a38 1 cwd=$(dirname $0) d40 5 a44 3 add_name=yes add_date=no add_kernrev=yes d47 1 a47 1 while getopts "DKN?" OPT; do d49 6 a54 4 D) add_date=yes;; K) add_kernrev=no;; N) add_name=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 d59 1 a59 1 shift `expr $OPTIND - 1` d61 3 a63 2 r=`awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' $1` t=`LC_ALL=C date` d65 1 a65 1 if [ $add_date = yes ]; then d71 2 a72 3 if [ $add_name = yes ]; then a="$2" # architecture name extra=${3:+" $3"} d74 1 a74 1 echo "const char bootprog_name[] = \"NetBSD/${a}${extra}\";" >> vers.c d77 2 a78 2 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) @ 1.8.14.1 log @update from HEAD @ text @d3 1 a3 1 # $NetBSD$ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE [EXTRA_MSG] d38 1 a38 1 cwd=$(dirname "$0") d40 3 a42 5 add_name=true add_date=true add_kernrev=true machine="unknown" dateargs= d45 1 a45 1 while getopts "m:D:dknm:" OPT; do d47 4 a50 6 D) dateargs="-r $OPTARG";; d) add_date=false;; k) add_kernrev=false;; m) machine=${OPTARG};; n) add_name=false;; *) echo "Usage: newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE EXTRA_COMMENT" >&2 d55 1 a55 1 shift $(expr $OPTIND - 1) d57 2 a58 3 r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1") shift t=$(LC_ALL=C TZ=UTC date $dateargs) d60 1 a60 1 if $add_date; then d66 3 a68 2 if $add_name; then extra=${1:+" $1"} d70 1 a70 1 echo "const char bootprog_name[] = \"NetBSD/${machine}${extra}\";" >> vers.c d73 2 a74 2 if $add_kernrev; then osr=$(sh "${cwd}/osrelease.sh") @ 1.8.32.1 log @Sync with HEAD @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.9 2017/04/08 19:53:54 christos Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE [EXTRA_MSG] d38 1 a38 1 cwd=$(dirname "$0") d40 3 a42 5 add_name=true add_date=true add_kernrev=true machine="unknown" dateargs= d45 1 a45 1 while getopts "m:D:dknm:" OPT; do d47 4 a50 6 D) dateargs="-r $OPTARG";; d) add_date=false;; k) add_kernrev=false;; m) machine=${OPTARG};; n) add_name=false;; *) echo "Usage: newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE EXTRA_COMMENT" >&2 d55 1 a55 1 shift $(expr $OPTIND - 1) d57 2 a58 3 r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1") shift t=$(LC_ALL=C TZ=UTC date $dateargs) d60 1 a60 1 if $add_date; then d66 3 a68 2 if $add_name; then extra=${1:+" $1"} d70 1 a70 1 echo "const char bootprog_name[] = \"NetBSD/${machine}${extra}\";" >> vers.c d73 2 a74 2 if $add_kernrev; then osr=$(sh "${cwd}/osrelease.sh") @ 1.8.36.1 log @Sync with HEAD @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.9 2017/04/08 19:53:54 christos Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE [EXTRA_MSG] d38 1 a38 1 cwd=$(dirname "$0") d40 3 a42 5 add_name=true add_date=true add_kernrev=true machine="unknown" dateargs= d45 1 a45 1 while getopts "m:D:dknm:" OPT; do d47 4 a50 6 D) dateargs="-r $OPTARG";; d) add_date=false;; k) add_kernrev=false;; m) machine=${OPTARG};; n) add_name=false;; *) echo "Usage: newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE EXTRA_COMMENT" >&2 d55 1 a55 1 shift $(expr $OPTIND - 1) d57 2 a58 3 r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1") shift t=$(LC_ALL=C TZ=UTC date $dateargs) d60 1 a60 1 if $add_date; then d66 3 a68 2 if $add_name; then extra=${1:+" $1"} d70 1 a70 1 echo "const char bootprog_name[] = \"NetBSD/${machine}${extra}\";" >> vers.c d73 2 a74 2 if $add_kernrev; then osr=$(sh "${cwd}/osrelease.sh") @ 1.8.40.1 log @Sync with HEAD @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.9 2017/04/08 19:53:54 christos Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE [EXTRA_MSG] d38 1 a38 1 cwd=$(dirname "$0") d40 3 a42 5 add_name=true add_date=true add_kernrev=true machine="unknown" dateargs= d45 1 a45 1 while getopts "m:D:dknm:" OPT; do d47 4 a50 6 D) dateargs="-r $OPTARG";; d) add_date=false;; k) add_kernrev=false;; m) machine=${OPTARG};; n) add_name=false;; *) echo "Usage: newvers_stand.sh [-dkn] [-D ] [-m ] VERSION_TEMPLATE EXTRA_COMMENT" >&2 d55 1 a55 1 shift $(expr $OPTIND - 1) d57 2 a58 3 r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1") shift t=$(LC_ALL=C TZ=UTC date $dateargs) d60 1 a60 1 if $add_date; then d66 3 a68 2 if $add_name; then extra=${1:+" $1"} d70 1 a70 1 echo "const char bootprog_name[] = \"NetBSD/${machine}${extra}\";" >> vers.c d73 2 a74 2 if $add_kernrev; then osr=$(sh "${cwd}/osrelease.sh") @ 1.7 log @don't embed localized timestamps into kernels/bootblocks. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.6 2008/07/15 20:10:06 perry Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-NDM] VERSION_FILE ARCH [EXTRA_MSG] d41 1 a41 2 add_date=yes add_maker=yes d45 1 a45 1 while getopts "NDMK?" OPT; do d47 2 a49 3 D) add_date=no;; M) add_maker=no;; K) add_kernrev=no;; d58 1 d60 5 a64 2 # always add revision info echo "const char bootprog_rev[] = \"${r}\";" > vers.c a72 10 if [ $add_date = yes ]; then t=`LC_ALL=C date` echo "const char bootprog_date[] = \"${t}\";" >> vers.c fi if [ $add_maker = yes ]; then u=${USER-root} h=`hostname` echo "const char bootprog_maker[] = \"${u}@@${h}\";" >> vers.c fi @ 1.7.6.1 log @Sync with HEAD. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.8 2011/01/22 19:19:25 joerg Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-N] VERSION_FILE ARCH [EXTRA_MSG] d41 2 a42 1 add_date=no d46 1 a46 1 while getopts "DKN?" OPT; do d48 3 a50 1 D) add_date=yes;; a51 1 N) add_name=no;; a59 1 t=`LC_ALL=C date` d61 2 a62 5 if [ $add_date = yes ]; then echo "const char bootprog_rev[] = \"${r} (${t})\";" > vers.c else echo "const char bootprog_rev[] = \"${r}\";" > vers.c fi d71 10 @ 1.7.4.1 log @sync with head @ text @d3 1 a3 1 # $NetBSD$ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-N] VERSION_FILE ARCH [EXTRA_MSG] d41 2 a42 1 add_date=no d46 1 a46 1 while getopts "DKN?" OPT; do d48 3 a50 1 D) add_date=yes;; a51 1 N) add_name=no;; a59 1 t=`LC_ALL=C date` d61 2 a62 5 if [ $add_date = yes ]; then echo "const char bootprog_rev[] = \"${r} (${t})\";" > vers.c else echo "const char bootprog_rev[] = \"${r}\";" > vers.c fi d71 10 @ 1.7.8.1 log @Sync with HEAD @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.8 2011/01/22 19:19:25 joerg Exp $ d36 1 a36 1 # sh ${S}/conf/newvers_stand.sh [-N] VERSION_FILE ARCH [EXTRA_MSG] d41 2 a42 1 add_date=no d46 1 a46 1 while getopts "DKN?" OPT; do d48 3 a50 1 D) add_date=yes;; a51 1 N) add_name=no;; a59 1 t=`LC_ALL=C date` d61 2 a62 5 if [ $add_date = yes ]; then echo "const char bootprog_rev[] = \"${r} (${t})\";" > vers.c else echo "const char bootprog_rev[] = \"${r}\";" > vers.c fi d71 10 @ 1.6 log @Add the kernel revision to vers.c, as in: const char bootprog_kernrev[] = "4.99.70"; For now, we still also include the builder name and date and such, so that we don't break anything, but those are (probably) on the way out. Part of the "bit-identical sources yield bit-identical release files" project. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.5 2008/04/30 13:10:59 martin Exp $ d72 1 a72 1 t=`date` @ 1.6.8.1 log @Sync with HEAD. Commit is split, to avoid a "too many arguments" protocol error. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.7 2009/02/20 13:41:27 yamt Exp $ d72 1 a72 1 t=`LC_ALL=C date` @ 1.6.2.1 log @Sync with HEAD. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.7 2009/02/20 13:41:27 yamt Exp $ d72 1 a72 1 t=`LC_ALL=C date` @ 1.5 log @Convert TNF licenses to new 2 clause variant @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.4 2000/08/23 07:15:20 mrg Exp $ d38 2 d43 1 d46 1 a46 1 while getopts "NDM?" OPT; do d51 2 a52 1 ?) echo "Syntax: newvers_stand.sh [-NDM] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 d80 5 @ 1.5.6.1 log @Sync with HEAD. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.6 2008/07/15 20:10:06 perry Exp $ a37 2 cwd=$(dirname $0) a40 1 add_kernrev=yes d43 1 a43 1 while getopts "NDMK?" OPT; do d48 1 a48 2 K) add_kernrev=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 a75 5 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.5.2.1 log @Sync with wrstuden-revivesa-base-2. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.5 2008/04/30 13:10:59 martin Exp $ a37 2 cwd=$(dirname $0) a40 1 add_kernrev=yes d43 1 a43 1 while getopts "NDMK?" OPT; do d48 1 a48 2 K) add_kernrev=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 a75 5 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.5.4.1 log @Sync with head. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.6 2008/07/15 20:10:06 perry Exp $ a37 2 cwd=$(dirname $0) a40 1 add_kernrev=yes d43 1 a43 1 while getopts "NDMK?" OPT; do d48 1 a48 2 K) add_kernrev=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 a75 5 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.4 log @replace a head | tail | sed sequence with a single link awk invocation, that also finds versions outside the range [0-9].[0-9] (eg, 10.10). @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.3 2000/07/13 22:04:44 jdolecek Exp $ a18 7 # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. Neither the name of The NetBSD Foundation nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. @ 1.4.2.1 log @file newvers_stand.sh was added on branch thorpej_scsipi on 2000-11-20 18:08:45 +0000 @ text @d1 82 @ 1.4.2.2 log @Update thorpej_scsipi to -current as of a month ago @ text @a0 82 #!/bin/sh - # # $NetBSD: newvers_stand.sh,v 1.4.2.1 2000/11/20 18:08:45 bouyer Exp $ # # Copyright (c) 2000 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation # by Jaromir Dolecek. # # 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. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. # Script for generating of vers.c file from given template. Used in # bootblock build on various architectures. # # Called as: # sh ${S}/conf/newvers_stand.sh [-NDM] VERSION_FILE ARCH [EXTRA_MSG] add_name=yes add_date=yes add_maker=yes # parse command args while getopts "NDM?" OPT; do case $OPT in N) add_name=no;; D) add_date=no;; M) add_maker=no;; ?) echo "Syntax: newvers_stand.sh [-NDM] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 exit 1;; esac done shift `expr $OPTIND - 1` r=`awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' $1` # always add revision info echo "const char bootprog_rev[] = \"${r}\";" > vers.c if [ $add_name = yes ]; then a="$2" # architecture name extra=${3:+" $3"} echo "const char bootprog_name[] = \"NetBSD/${a}${extra}\";" >> vers.c fi if [ $add_date = yes ]; then t=`date` echo "const char bootprog_date[] = \"${t}\";" >> vers.c fi if [ $add_maker = yes ]; then u=${USER-root} h=`hostname` echo "const char bootprog_maker[] = \"${u}@@${h}\";" >> vers.c fi @ 1.4.124.1 log @Sync with HEAD. @ text @d3 1 a3 1 # $NetBSD$ d19 7 @ 1.4.124.2 log @Sync with HEAD. @ text @a37 2 cwd=$(dirname $0) a40 1 add_kernrev=yes d43 1 a43 1 while getopts "NDMK?" OPT; do d48 1 a48 2 K) add_kernrev=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 a75 5 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.4.126.1 log @sync with head. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.4 2000/08/23 07:15:20 mrg Exp $ d19 7 @ 1.4.128.1 log @sync with head. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.4 2000/08/23 07:15:20 mrg Exp $ d19 7 @ 1.4.128.2 log @sync with head. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.4.128.1 2008/05/16 02:23:48 yamt Exp $ a37 2 cwd=$(dirname $0) a40 1 add_kernrev=yes d43 1 a43 1 while getopts "NDMK?" OPT; do d48 1 a48 2 K) add_kernrev=no;; ?) echo "Syntax: newvers_stand.sh [-NDMK] VERSION_TEMPLATE ARCH EXTRA_COMMENT" >&2 d68 1 a68 1 t=`LC_ALL=C date` a75 5 if [ $add_kernrev = yes ]; then osr=$(sh ${cwd}/osrelease.sh) echo "const char bootprog_kernrev[] = \"${osr}\";" >> vers.c fi @ 1.3 log @add couple of flags which can be used to avoid generating some of the information. Put standard TNF copyright in, since this file no longer uses the old code. @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.2 2000/07/12 22:19:57 jdolecek Exp $ d62 1 a62 1 r=`grep '^[0-9].[0-9]:' $1 | tail -1 | sed -e 's/:.*//'` @ 1.2 log @make bootprog_* const (pointed by Simon Burge) @ text @d3 1 a3 1 # $NetBSD: newvers_stand.sh,v 1.1 2000/07/12 20:57:42 jdolecek Exp $ d5 5 a9 2 # Copyright (c) 1984, 1986, 1990, 1993 # The Regents of the University of California. All rights reserved. d21 5 a25 5 # This product includes software developed by the University of # California, Berkeley and its contributors. # 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. d27 14 a40 11 # 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. d42 6 a47 1 # @@(#)newvers.sh 8.1 (Berkeley) 4/20/94 d49 12 a60 2 # called as: # sh ${S}/conf/newvers_stand.sh VERSION_FILE ARCH [EXTRA_MSG] a61 1 u=${USER-root} h=`hostname` t=`date` d64 13 a76 4 if [ X"$3" != X ]; then extra=" $3" else extra="" d79 4 a82 4 echo "const char bootprog_name[] = \"NetBSD/${2}${extra}\";" > vers.c echo "const char bootprog_rev[] = \"${r}\";" >> vers.c echo "const char bootprog_date[] = \"${t}\";" >> vers.c echo "const char bootprog_maker[] = \"${u}@@${h}\";" >> vers.c @ 1.1 log @new MI bootblock versioning helper for generating vers.c, intended to replace all the various port's stand/*/newvers.sh scripts architectures will be switched to this gradually as tested @ text @d3 1 a3 1 # $NetBSD: newvers.sh,v 1.2 2000/07/08 15:36:05 jdolecek Exp $ d50 4 a53 4 echo "char bootprog_name[] = \"NetBSD/${2}${extra}\";" > vers.c echo "char bootprog_rev[] = \"${r}\";" >> vers.c echo "char bootprog_date[] = \"${t}\";" >> vers.c echo "char bootprog_maker[] = \"${u}@@${h}\";" >> vers.c @