blob: eabcd987cff59d70ced8b11e816a3d8e2e839518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/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
|