Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix make VERSION=x.y to work again

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28427 a1c6a512-1295-4272-9138-f99709370657

+19 -16
+19 -16
tools/version.sh
··· 90 90 # 91 91 if [ -n "$1" ]; then TOP=$1; else TOP=..; fi 92 92 93 - # If the VERSIONFILE exisits we use that 94 - VERSIONFILE=docs/VERSION 95 - if [ -r $TOP/$VERSIONFILE ]; then VER=`cat $TOP/$VERSIONFILE`; 96 - else 97 - # Ok, we need to derive it from the Version Control system 98 - if [ -d "$TOP/.git" ]; then 99 - VER=`gitversion $TOP` 100 - elif [ -d "$TOP/.bzr" ]; then 101 - VER=`bzrversion $TOP` 93 + # setting VERSION var on commandline has precedence 94 + if [ -z $VERSION ]; then 95 + # If the VERSIONFILE exisits we use that 96 + VERSIONFILE=docs/VERSION 97 + if [ -r $TOP/$VERSIONFILE ]; then VER=`cat $TOP/$VERSIONFILE`; 102 98 else 103 - VER=`svnversion_safe $TOP`; 104 - if [ "$VER" = "unknown" ]; then 105 - # try getting it from a subdir to test if perhaps they are symlinked 106 - # from the root 107 - VER=`svnversion_safe $TOP/tools`; 108 - fi 99 + # Ok, we need to derive it from the Version Control system 100 + if [ -d "$TOP/.git" ]; then 101 + VER=`gitversion $TOP` 102 + elif [ -d "$TOP/.bzr" ]; then 103 + VER=`bzrversion $TOP` 104 + else 105 + VER=`svnversion_safe $TOP`; 106 + if [ "$VER" = "unknown" ]; then 107 + # try getting it from a subdir to test if perhaps they are symlinked 108 + # from the root 109 + VER=`svnversion_safe $TOP/tools`; 110 + fi 111 + fi 109 112 fi 110 - fi 111 113 VERSION=$VER-`date -u +%y%m%d` 114 + fi 112 115 echo $VERSION 113 116