--- a/oss-v4.1-build1051-src-gpl/setup/Linux/build.sh 2008-12-28 14:07:20.000000000 +0100 +++ b/oss-v4.1-build1051-src-gpl/setup/Linux/build.sh 2008-12-28 14:08:34.000000000 +0100 @@ -63,20 +63,20 @@ cp regparm prototype/$OSSLIBDIR/build # Regenerating the config file templates -rm -f /tmp/confgen -if ! cc -o /tmp/confgen ./setup/Linux/confgen.c +rm -f ${T}/confgen +if ! cc -o ${T}/confgen ./setup/Linux/confgen.c then echo Building confgen failed exit 1 fi -if ! /tmp/confgen prototype/$OSSLIBDIR/conf.tmpl $OSSLIBDIR/conf kernel/drv/* kernel/nonfree/drv/* +if ! ${T}/confgen prototype/$OSSLIBDIR/conf.tmpl $OSSLIBDIR/conf kernel/drv/* kernel/nonfree/drv/* then echo Running confgen failed exit 1 fi -rm -f /tmp/confgen +rm -f ${T}/confgen cp -a $SRCDIR/include/* prototype/$OSSLIBDIR/include/sys/ cp $SRCDIR/kernel/framework/include/midiparser.h prototype/$OSSLIBDIR/include/ @@ -117,24 +117,24 @@ echo Check devices for $N grep "^$N[ ]" ./devices.list >> devlist.txt - rm -f /tmp/ossman.txt + rm -f ${T}/ossman.txt if test -f $SRCDIR/kernel/drv/$N/$N.man then - sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/$N/$N.man > /tmp/ossman.txt - $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/$N.7.gz + sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/$N/$N.man > ${T}/ossman.txt + $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 ${T}/ossman.txt | gzip -9 > prototype/usr/share/man/man7/$N.7.gz else if test -f $SRCDIR/kernel/nonfree/drv/$N/$N.man then - sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/nonfree/drv/$N/$N.man > /tmp/ossman.txt + sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/nonfree/drv/$N/$N.man > ${T}/ossman.txt $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $SRCDIR/kernel/nonfree/drv/$N/$N.man | gzip -9 > prototype/usr/share/man/man7/$N.7.gz fi fi done -sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/osscore/osscore.man > /tmp/ossman.txt -$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/osscore.7.gz -rm -f /tmp/ossman.txt +sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/osscore/osscore.man > ${T}/ossman.txt +$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 ${T}/ossman.txt | gzip -9 > prototype/usr/share/man/man7/osscore.7.gz +rm -f ${T}/ossman.txt # Link the optional NOREGPARM modules if test -d noregparm