- Remove no longer in use
PR: kern/152354 Submitted by: vehemens <vehemens@verizon.net> Discussion with:kib Approved by: rwatson (mentor)
This commit is contained in:
parent
d51726b0b3
commit
843f5f45a2
@ -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
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user