From 43ea33e45d7116499a07b430ef3e519c57632a85 Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 22 Feb 2011 05:10:13 +0000 Subject: - Remove no longer in use PR: kern/152354 Submitted by: vehemens Discussion with:kib Approved by: rwatson (mentor) --- sys/dev/drm/drm-preprocess.sh | 36 ------------------------------ sys/dev/drm/drm-subprocess.pl | 51 ------------------------------------------- 2 files changed, 87 deletions(-) delete mode 100644 sys/dev/drm/drm-preprocess.sh delete mode 100644 sys/dev/drm/drm-subprocess.pl (limited to 'sys/dev/drm') 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 \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; -} -- cgit v1.1