[Lunar-commits] <moonbase> openal: tidying

Paul Bredbury brebs at lunar-linux.org
Wed Sep 23 08:20:12 CEST 2009


commit d625caa4175c40c85f0b0fe7b8a5a870a70e8e16
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Sep 23 13:20:12 2009 +0700

    openal: tidying
    
    Configuration files should be chmod 644, not 755 - they are not executables.
    
    Set AL_FORMAT_STEREO16 in the right section of the configuration file.
    
    Properly use "&&" error-handling in BASH.
---
 audio/openal/BUILD |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/audio/openal/BUILD b/audio/openal/BUILD
index 44c8121..ec52c4c 100644
--- a/audio/openal/BUILD
+++ b/audio/openal/BUILD
@@ -1,6 +1,6 @@
 (
 
-  OOT_BUILD="$SOURCE_DIRECTORY/$MODULE-build"
+  OOT_BUILD="$SOURCE_DIRECTORY/$MODULE-build" &&
 
   mkdir $OOT_BUILD  &&
   cd $OOT_BUILD     &&
@@ -13,8 +13,8 @@
   mkdir -p /etc/openal &&
 
   if [ ! -e /etc/openal/alsoft.conf ] ; then
-    install -m 755 $SOURCE_DIRECTORY/alsoftrc.sample /etc/openal/alsoft.conf
-    echo "format = AL_FORMAT_STEREO16" >> /etc/openal/alsoft.conf
+    install -m 644 $SOURCE_DIRECTORY/alsoftrc.sample /etc/openal/alsoft.conf &&
+    sedit "s:\#format = AL_FORMAT_STEREO16:format = AL_FORMAT_STEREO16:" /etc/openal/alsoft.conf
   fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list