File: patch-alsa

package info (click to toggle)
alsa-driver 1.0.8-7sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,840 kB
  • ctags: 43,253
  • sloc: ansic: 257,429; sh: 18,021; makefile: 1,741; perl: 1,316; python: 1,280; xml: 448; awk: 66
file content (26 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download
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
#!/bin/sh
# 
# copy a file from alsa-kernel tree and apply a patch
#

dst="$1"
pat=`echo $dst | sed -e 's/.c$/.patch/'`

case $dst in
/*)
	xtmp=`dirname $dst | sed -e s@/acore@/core@ -e s@alsa-driver/@alsa-driver/alsa-kernel/@`/`basename $dst`
	echo copying file $xtmp
	cp -v $xtmp $dst
	patch -p0 $dst $pat
	;;
*)
	curd=`/bin/pwd`
	MODCURDIR=`echo $curd | sed -e s@$SND_TOPDIR/@@`
	xtmp=`echo $MODCURDIR | sed -e 's/^acore/core/'`/$dst
	echo copying file alsa-kernel/$xtmp
	cp $SND_TOPDIR/alsa-kernel/$xtmp $@
	patch -p0 -i $pat
	;;
esac
exit 0