Update of /cvsroot/alsa/alsa-driver In directory sc8-pr-cvs1:/tmp/cvs-serv389
Modified Files: configure.in Rules.make Log Message: - replaced the bash-specific features with normal commands. Index: configure.in =================================================================== RCS file: /cvsroot/alsa/alsa-driver/configure.in,v retrieving revision 1.178 retrieving revision 1.179 diff -u -r1.178 -r1.179 --- configure.in 1 Jun 2003 18:26:19 -0000 1.178 +++ configure.in 3 Jun 2003 11:48:29 -0000 1.179 @@ -210,22 +210,29 @@ dnl kernel_compiler_type=`echo $kernel_compiler | cut -d ' ' -f 1` kernel_compiler_version=`echo $kernel_compiler | cut -d ' ' -f 2` -if test "${kernel_compiler_version:0:5}" = "egcs-"; then +case "$kernel_compiler_version" in +egcs-*) kernel_compiler_type="egcs" - kernel_compiler_version=`echo ${kernel_compiler_version:5} | cut -d ' ' -f 1` -fi -if test "${my_compiler:0:4}" = "gcc-"; then + kernel_compiler_version=`echo "$kernel_compiler_version" | cut -b 6-` + ;; +esac +case "$my_compiler" in +gcc-*) my_compiler_type="gcc" - my_compiler_version=`echo ${my_compiler:4} | cut -d ' ' -f 1` -else - if test "${my_compiler:0:5}" = "egcs-"; then + my_compiler_version=`echo "$my_compiler" | cut -b 5-` + ;; +*) + case "$my_compiler" in + egcs-*) my_compiler_type="egcs" - my_compiler_version=`echo ${my_compiler:5} | cut -d ' ' -f 1` - else + my_compiler_version=`echo "$my_compiler" | cut -b 6-` + ;; + *) my_compiler_type=`echo $my_compiler | cut -d ' ' -f 1` - my_compiler_version=`echo $my_compiler | cut -d ' ' -f 3` - fi -fi + my_compiler_version=`echo "$my_compiler" | cut -d ' ' -f 3` + ;; + esac +esac if test "$my_compiler_type" = "$my_compiler_version"; then my_compiler_type="gcc" fi Index: Rules.make =================================================================== RCS file: /cvsroot/alsa/alsa-driver/Rules.make,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- Rules.make 30 May 2003 14:07:46 -0000 1.29 +++ Rules.make 3 Jun 2003 11:48:30 -0000 1.30 @@ -92,17 +92,10 @@ endif %.c: %.patch - @xtmp="$(MODCURDIR)"; \ - if [ "$${xtmp:0:5}" = "acore" ]; then \ - xtmp1=$${xtmp:6} ; \ - if [ ! -z "$${xtmp1}" ]; then xtmp1="$${xtmp1}/" ; fi ; \ - echo "coping file alsa-kernel/core/$${xtmp1}$@"; \ - cp $(TOPDIR)/alsa-kernel/core/$${xtmp1}$@ $@; \ - else \ - echo "Coping file alsa-kernel/core/$${xtmp}/$@"; \ - cp $(TOPDIR)/alsa-kernel/$${xtmp}/$@ $@; \ - fi - @patch -p0 -i $< + @xtmp=`echo $(MODCURDIR) | sed -e 's/^acore/core/'`/$@;\ + echo "copying file alsa-kernel/$$xtmp";\ + cp "$(TOPDIR)/alsa-kernel/$$xtmp" $@;\ + patch -p0 -i $< %.isapnp: %.c $(CPP) -C -D__KERNEL__ $(CFLAGS) $(EXTRA_CFLAGS) -D__isapnp_now__ -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $(CFLAGS_$@) $< | $(TOPDIR)/utils/convert_isapnp_ids > $@ ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog