[aadk-commits] dbailey: trunk r500 - /trunk/scripts/set-asterisk-soundrevision

SVN commits to the AADK repository aadk-commits at lists.digium.com
Mon Jul 2 13:34:15 CDT 2007


Author: dbailey
Date: Mon Jul  2 13:34:14 2007
New Revision: 500

URL: http://svn.digium.com/view/aadk?view=rev&rev=500
Log:
Added program version information to be loaded into create sounds script

Modified:
    trunk/scripts/set-asterisk-soundrevision

Modified: trunk/scripts/set-asterisk-soundrevision
URL: http://svn.digium.com/view/aadk/trunk/scripts/set-asterisk-soundrevision?view=diff&rev=500&r1=499&r2=500
==============================================================================
--- trunk/scripts/set-asterisk-soundrevision (original)
+++ trunk/scripts/set-asterisk-soundrevision Mon Jul  2 13:34:14 2007
@@ -6,15 +6,17 @@
 #Determine the revision of the sounds file for the create_sounds script
 PID=$$
 TMPFILE=tmp-${PID}
+
+PROGRAM_VERSION=`cat .flavor`-`cat .version`
 cd asterisk
 CORE_SOUNDS_VERSION=`make -s -C sounds core_sounds_version`
 EXTRA_SOUNDS_VERSION=`make -s -C sounds extra_sounds_version`
 
 #Strip the 1st three lines of the script and replace them with proper values
 cd ../uClinux/uClinux-dist/vendors/Digium/S800I/scripts
-grep -v "#!/bin/sh" create_sounds | grep  -v "SOUNDS_CORE_VERSION=" | grep -v "SOUNDS_EXTRA_VERSION=" >${TMPFILE}
+grep -v "#!/bin/sh" create_sounds | grep  -v "SOUNDS_CORE_VERSION=" | grep -v "SOUNDS_EXTRA_VERSION=" | grep -v "PROGRAM_VERSION="  >${TMPFILE}
 
-echo "#!/bin/sh \nSOUNDS_CORE_VERSION=${CORE_SOUNDS_VERSION} \nSOUNDS_EXTRA_VERSION=${EXTRA_SOUNDS_VERSION}"  >create_sounds
+echo "#!/bin/sh \nPROGRAM_VERSION=${PROGRAM_VERSION}\nSOUNDS_CORE_VERSION=${CORE_SOUNDS_VERSION} \nSOUNDS_EXTRA_VERSION=${EXTRA_SOUNDS_VERSION}"  >create_sounds
 cat ${TMPFILE} >>create_sounds
 rm ${TMPFILE}
 




More information about the aadk-commits mailing list