2005-11-28 23:13:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-12-03 00:43:57 +00:00
|
|
|
cvs up -CPd *.[ch]
|
|
|
|
|
|
|
|
for i in `ls *.[ch]`; do
|
|
|
|
mv $i $i.cvs
|
|
|
|
done
|
|
|
|
|
2005-11-28 23:13:57 +00:00
|
|
|
cp /usr/src/drm/bsd-core/*.[ch] .
|
2006-04-09 20:45:45 +00:00
|
|
|
rm -f i810*.[ch]
|
2005-11-28 23:13:57 +00:00
|
|
|
rm via*.[ch]
|
|
|
|
|
2006-04-09 20:45:45 +00:00
|
|
|
(cd /usr/src/drm/bsd-core/ && make drm_pciids.h)
|
|
|
|
|
2005-11-28 23:13:57 +00:00
|
|
|
# Replace drm_pciids.h with one with a $FreeBSD$
|
2005-12-03 00:43:57 +00:00
|
|
|
line=`grep \\\$FreeBSD drm_pciids.h.cvs`
|
2005-11-28 23:13:57 +00:00
|
|
|
rm -f drm_pciids.h
|
|
|
|
echo "/*" >> drm_pciids.h
|
2005-12-03 00:43:57 +00:00
|
|
|
echo "$line" >> drm_pciids.h
|
2005-11-28 23:13:57 +00:00
|
|
|
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
|
|
|
|
|
2005-12-03 00:43:57 +00:00
|
|
|
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
|