[alsa-devel] alsa-info.sh script

Travis Place wishie at wishie.net
Sun Feb 17 18:33:46 CET 2008


On Tue, 12 Feb 2008 6:09:33 pm Jaroslav Kysela wrote:
> On Tue, 12 Feb 2008, Travis Place wrote:
> > Is there any chance that i will be able to push updates for my script
> > back to ALSA?
> >
> > Or is this to be a no-go ?
>
> Please, send unified diff (diff -u <oldfile> <newfile>, or use hg diff if
> you work with hg repo, to this mailing list. I or other developer with
> write access to HG repository will review and commit your changes and will
> notify you.
>
> 					Jaroslav
>
> -----
> Jaroslav Kysela <perex at perex.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, Red Hat, Inc.
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Below is the diff of my changes to alsa-info.sh .. This makes use of the new 
collapsable sections that i asked slepp (owner of pastebin.ca) to create.

Basically, just makes the output a bit more readable on first glance.



diff -r 9877b6757b24 alsa-info.sh
--- a/alsa-info.sh	Mon Feb 04 09:41:02 2008 +0100
+++ b/alsa-info.sh	Mon Feb 18 03:30:57 2008 +1000
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-SCRIPT_VERSION=0.4.36
+SCRIPT_VERSION=0.4.37
 CHANGELOG="http://hg.alsa-project.org/alsa/log/tip/alsa-info.sh"
 
 
#################################################################################
@@ -123,7 +123,9 @@ withalsactl() {
         	exe=`whereis alsactl | cut -d ' ' -f 2`
         fi
 	$exe -f /tmp/alsainfo/alsactl.tmp store
+	echo "--startcollapse--" >> $FILE
 	cat /tmp/alsainfo/alsactl.tmp >> $FILE
+	echo "--endcollapse--" >> $FILE
 	echo "" >> $FILE
 	echo "" >> $FILE
 }
@@ -353,8 +355,10 @@ then
 then
 	echo "!!HDA-Intel Codec information" >> $FILE
 	echo "!!---------------------------" >> $FILE
+	echo "--startcollapse--" >> $FILE
 	echo "" >> $FILE
 	cat /tmp/alsainfo/alsa-hda-intel.tmp >> $FILE
+	echo "--endcollapse--" >> $FILE
 	echo "" >> $FILE
 	echo "" >> $FILE
 fi



-- 
Happiness is like peeing your pants. Everyone can see it, but only you can 
feel its warmth 


More information about the Alsa-devel mailing list