#! /bin/sh # # $NetBSD: less2netbsd,v 1.4 2001/07/26 13:47:24 mrg Exp $ # # Copyright (c) 1996 Matthew R. Green # All rights reserved. # # 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. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. # less2netbsd: convert a less source tree into a netbsd less source # tree, under src/usr.bin/less ready for importing. if [ $# -ne 2 ]; then echo "less2netbsd src dest"; exit 1; fi r=$1 d=$2/less case "$d" in /*) ;; *) d=`/bin/pwd`/$d ;; esac case "$r" in /*) ;; *) r=`/bin/pwd`/$r ;; esac echo preparing directory $d rm -rf $d mkdir -p $d; cd $d mkdir -p src/usr.bin/less/less src/usr.bin/less/lesskey src/usr.bin/less/lessecho ### start less ############################### cd $r echo less: src='INSTALL NEWS README acconfig.h brac.c ch.c charset.c cmd.h cmdbuf.c command.c decode.c defines.h edit.c filename.c forwback.c funcs.h help.c ifile.c input.c jump.c less.h less.nro lglob.h line.c linenum.c lsystem.c main.c mark.c optfunc.c option.c option.h opttbl.c os.c output.c pckeys.h position.c position.h prompt.c regexp.c regexp.h screen.c search.c signal.c tags.c ttyin.c version.c' pax -rvw $src $d/src/usr.bin/less/less cd $d/src/usr.bin/less/less mv less.nro less.1 ### end less ############################### ### start lesskey ############################### cd $r echo lesskey: src='lesskey.c lesskey.h lesskey.nro' pax -rvw $src $d/src/usr.bin/less/lesskey cd $d/src/usr.bin/less/lesskey mv lesskey.nro lesskey.1 ### end lesskey ############################### ### start lessecho ############################### cd $r echo lessecho: src='lessecho.c' pax -rvw $src $d/src/usr.bin/less/lessecho ### end lesskey ############################### find $d -name '*.[ch]' -print | while read c; do chmod u+w $c sed 1q < $c | grep '\$NetBSD' || ( cat <<'__eof_header' /* $NetBSD: less2netbsd,v 1.4 2001/07/26 13:47:24 mrg Exp $ */ __eof_header cat $c ) > /tmp/l2n$$ && cp /tmp/l2n$$ $c && echo added RCS tags to $c done echo done exit 0 c28376ea7f45d590e1402105439cd9639755e9'>Update 2400 firmware to latest (to match 2500 firmware)mjacob 2009-05-07update firmwaremjacob 2009-05-07Add firmware set for 8Gb card.mjacob 2008-05-11Update 2400 f/w to something more akin to what is current.mjacob 2008-03-11Checkpoint of some fairly major isp(4) rototilling.mjacob 2008-03-09Remove files that have no apparent immediate use.mjacob 2007-05-24Major update to isp(4) driver to bring it in line with external sources.mjacob 2005-12-11merge ktrace-lwp.christos 2005-05-31remove bogus cast.christos 2005-03-01revert the whitespace kill -- these are binaries.perry 2005-02-27nuke trailing whitespaceperry 2004-08-01Add binary versions of firmware images, which will be used Soon.mycroft