The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/drm/drm-preprocess.sh

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/sh
    2 
    3 # $FreeBSD: releng/6.4/sys/dev/drm/drm-preprocess.sh 158686 2006-05-17 07:40:12Z anholt $
    4 
    5 cvs up -CPd *.[ch]
    6 
    7 for i in `ls *.[ch]`; do
    8         mv $i $i.cvs
    9 done
   10 
   11 cp /usr/src/drm/bsd-core/*.[ch] .
   12 rm -f i810*.[ch]
   13 rm via*.[ch]
   14 
   15 (cd /usr/src/drm/bsd-core/ && make drm_pciids.h)
   16 
   17 # Replace drm_pciids.h with one with a $FreeBSD: releng/6.4/sys/dev/drm/drm-preprocess.sh 158686 2006-05-17 07:40:12Z anholt $
   18 line=`grep \\\$FreeBSD drm_pciids.h.cvs`
   19 rm -f drm_pciids.h
   20 echo "/*" >> drm_pciids.h
   21 echo "$line" >> drm_pciids.h
   22 echo " */" >> drm_pciids.h
   23 cat /usr/src/drm/bsd-core/drm_pciids.h >> drm_pciids.h
   24 
   25 for i in `ls *.[ch]`; do
   26         mv $i $i.orig
   27         perl drm-subprocess.pl < $i.orig > $i
   28 done
   29 
   30 for orig in `ls *.[ch].cvs`; do
   31         real=`echo "$orig" | sed s/.cvs//`
   32         line=`grep __FBSDID $orig | sed s/\\\\\$/\\\\\\\\\$/g`
   33         perl -pi -e "s|__FBSDID.*|$line|g" $real
   34 done
   35 
   36 rm *.cvs

Cache object: b42511330ab8ca3ec7d30762da48795c


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.