diff options
author | miwi <miwi@FreeBSD.org> | 2011-02-22 05:10:13 +0000 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-02-22 05:10:13 +0000 |
commit | 43ea33e45d7116499a07b430ef3e519c57632a85 (patch) | |
tree | 700a76090649832a51a51dcc40d65f234943cf96 | |
parent | 8eb2cccfad35e8f1a2847cc044fd49971bb1577e (diff) | |
download | FreeBSD-src-43ea33e45d7116499a07b430ef3e519c57632a85.zip FreeBSD-src-43ea33e45d7116499a07b430ef3e519c57632a85.tar.gz |
- Remove no longer in use
PR: kern/152354
Submitted by: vehemens <vehemens@verizon.net>
Discussion with:kib
Approved by: rwatson (mentor)
-rw-r--r-- | sys/dev/drm/drm-preprocess.sh | 36 | ||||
-rw-r--r-- | sys/dev/drm/drm-subprocess.pl | 51 |
2 files changed, 0 insertions, 87 deletions
diff --git a/sys/dev/drm/drm-preprocess.sh b/sys/dev/drm/drm-preprocess.sh deleted file mode 100644 index eabcd98..0000000 --- a/sys/dev/drm/drm-preprocess.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ - -cvs up -CPd *.[ch] - -for i in `ls *.[ch]`; do - mv $i $i.cvs -done - -cp /usr/src/drm/bsd-core/*.[ch] . -rm -f i810*.[ch] -rm via*.[ch] - -(cd /usr/src/drm/bsd-core/ && make drm_pciids.h) - -# Replace drm_pciids.h with one with a $FreeBSD$ -line=`grep \\\$FreeBSD drm_pciids.h.cvs` -rm -f drm_pciids.h -echo "/*" >> drm_pciids.h -echo "$line" >> drm_pciids.h -echo " */" >> drm_pciids.h -cat /usr/src/drm/bsd-core/drm_pciids.h >> drm_pciids.h - -for i in `ls *.[ch]`; do - mv $i $i.orig - perl drm-subprocess.pl < $i.orig > $i -done - -for orig in `ls *.[ch].cvs`; do - real=`echo "$orig" | sed s/.cvs//` - line=`grep __FBSDID $orig | sed s/\\\\\$/\\\\\\\\\$/g` - perl -pi -e "s|__FBSDID.*|$line|g" $real -done - -rm *.cvs diff --git a/sys/dev/drm/drm-subprocess.pl b/sys/dev/drm/drm-subprocess.pl deleted file mode 100644 index 16d27b5..0000000 --- a/sys/dev/drm/drm-subprocess.pl +++ /dev/null @@ -1,51 +0,0 @@ -# $FreeBSD$ -# -# Props to Daniel Stone for starting this script for me. I hate perl. - -my $lastline = ""; -my $foundopening = 0; -my $foundclosing = 0; - -while (<>) { - $curline = $_; - if (!$foundopening) { - if (/Copyright/) { - $foundopening = 1; - # print the previous line we buffered, but with /*- - if ($lastline !~ /\/\*-/) { - $lastline =~ s/\/\*/\/\*-/; - } - print $lastline; - # now, print the current line. - print $curline; - } else { - # print the previous line and continue on - print $lastline; - } - } elsif ($foundopening && !$foundclosing && /\*\//) { - # print the $FreeBSD$ bits after the end of the license block - $foundclosing = 1; - print; - print "\n"; - print "#include <sys/cdefs.h>\n"; - print "__FBSDID(\"\$FreeBSD\$\");\n"; - } elsif ($foundopening) { - # Replace headers with the system's paths. the headers we're - # concerned with are drm*.h, *_drm.h and *_drv.h - # - s/#include "(.*)_drv.h/#include "dev\/drm\/\1_drv.h/; - s/#include "(.*)_drm.h/#include "dev\/drm\/\1_drm.h/; - s/#include "mga_ucode.h/#include "dev\/drm\/mga_ucode.h/; - s/#include "r300_reg.h/#include "dev\/drm\/r300_reg.h/; - s/#include "radeon_microcode.h/#include "dev\/drm\/radeon_microcode.h/; - s/#include "sis_ds.h/#include "dev\/drm\/sis_ds.h/; - s/#include "drm/#include "dev\/drm\/drm/; - print; - } - $lastline = $curline; -} - -# if we never found the copyright header, then we're still a line behind. -if (!$foundopening) { - print $lastline; -} |