freebsd-dev/sys/dev/drm/drm-preprocess.sh
Eric Anholt 72ab0eff0f Update to DRM CVS as of 2006-04-09. The most notable new feature is the updated
Radeon memmap code, which with a new DDX driver and DRI drivers should fix
long-term stability issues with Radeons.  Also adds support for r200's
ATI_fragment_shader, r300 texrect support and texture caching fixes, i915
vblank support and bugfixes, and new PCI IDs.
2006-04-09 20:45:45 +00:00

37 lines
717 B
Bash

#!/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