As the format of squeezeplay/src/squeezeplay/src/version.h has changed
recently, i had to adjust two other files to fix the build process for
the SBC.
I don't know if this is still work in progress, but here's the patch in
case somebody else wants it - restores version numbering as it was in
r2707.
Code:
--------------------
Index: squeezeos/src/scripts/mkversion
===================================================================
--- squeezeos/src/scripts/mkversion (revision 2719)
+++ squeezeos/src/scripts/mkversion (working copy)
@@ -5,6 +5,8 @@
expr 0`cat .version` + 1 > .version
fi
-cat ../../squeezeplay/src/squeezeplay/src/version.h | cut -sd\" -f 2
+SPREL=`cat ../../squeezeplay/src/squeezeplay/src/version.h | grep "define
SQUEEZEPLAY_RELEASE" | cut -sd\" -f 2`
+SPREV=`cat ../../squeezeplay/src/squeezeplay/src/version.h | grep "define
SQUEEZEPLAY_REVISION" | cut -sd\" -f 2`
+cat ../../squeezeplay/src/squeezeplay/src/version.h | grep "JIVE_VERSION" |
sed -e "s/SQUEEZEPLAY_RELEASE/$SPREL/" -e "s/SQUEEZEPLAY_REVISION/$SPREV/" | tr
-d \" | cut -d" " -f3,4
echo [EMAIL PROTECTED] \#`cat .version` `date`
Index: squeezeos/src/Makefile
===================================================================
--- squeezeos/src/Makefile (revision 2719)
+++ squeezeos/src/Makefile (working copy)
@@ -69,7 +69,7 @@
# Create upgrade.md5
cd ${IMAGEDIR} && md5sum zImage-P7 root.cramfs > upgrade.md5
# Create jive.bin
- VERSION=`cat ${SQUEEZEPLAY_SRC}/squeezeplay/src/version.h | cut -sd\"
-f 2 | sed -e 's/ /_/'` && cd ${IMAGEDIR} && echo $$VERSION && zip
${IMAGEDIR}/jive_$$VERSION.bin jive.version upgrade.md5 zImage-P7 root.cramfs
+ SPREL=`cat ${SQUEEZEPLAY_SRC}/squeezeplay/src/version.h | grep
"define SQUEEZEPLAY_RELEASE" | cut -sd\" -f 2` && SPREV=`cat
${SQUEEZEPLAY_SRC}/squeezeplay/src/version.h | grep "define
SQUEEZEPLAY_REVISION" | cut -sd\" -f 2` && VERSION=`cat
${SQUEEZEPLAY_SRC}/squeezeplay/src/version.h | grep "JIVE_VERSION" | sed -e
"s/SQUEEZEPLAY_RELEASE/$$SPREL/" -e "s/SQUEEZEPLAY_REVISION/$$SPREV/" | tr -d
\" | cut -d" " -f3,4 | sed -e 's/ /_/'` && cd ${IMAGEDIR} && echo $$VERSION &&
zip ${IMAGEDIR}/jive_$$VERSION.bin jive.version upgrade.md5 zImage-P7
root.cramfs
@cat ${IMAGEDIR}/jive.version
--------------------
kind regards,
Markus
--
schiegl
------------------------------------------------------------------------
schiegl's Profile: http://forums.slimdevices.com/member.php?userid=6654
View this thread: http://forums.slimdevices.com/showthread.php?t=48051
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive