Use the svn revision number for version information too, version string is now "r<revision>-<builddate> unless there is a static version file (e.g. created by tools/release).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12090 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f30a39806c
commit
ea37d4c072
6 changed files with 44 additions and 4 deletions
|
@ -815,7 +815,7 @@ int show_logo( void )
|
|||
lcd_clear_display();
|
||||
lcd_double_height(true);
|
||||
lcd_puts(0, 0, rockbox);
|
||||
lcd_puts(0, 1, appsversion);
|
||||
lcd_puts_scroll(0, 1, appsversion);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -16,6 +16,7 @@ manual-prep: rockbox.tex
|
|||
@mkdir -p $(OBJDIR)
|
||||
@find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
|
||||
@find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \;
|
||||
@../tools/svnversion.sh > version.tex
|
||||
@perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
|
||||
@echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
|
||||
@echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
% \/ \/ \/ \/ \/
|
||||
% - M A N U A L -
|
||||
%
|
||||
% $Id:$
|
||||
% $Id$
|
||||
%
|
||||
% Copyright (C) 2006 The Rockbox Manual Team
|
||||
%
|
||||
|
@ -44,6 +44,10 @@ contributors.
|
|||
\copyright~2004 Christi Alice Scarborough,
|
||||
\copyright~2003 Jos\'{e} Maria Garcia-Valdecasas Bernal \& Peter Schlenker.
|
||||
\end{quote}
|
||||
\vspace{3mm}
|
||||
\begin{center}
|
||||
\IfFileExists{version.tex}{Build with \LaTeX{} from version \input{version.tex}}{}
|
||||
\end{center}
|
||||
|
||||
\vspace{\fill}
|
||||
\begin{quote}
|
||||
|
|
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -1579,7 +1579,7 @@ export OBJDIR=@PWD@
|
|||
export BUILDDIR=@PWD@
|
||||
export LANGUAGE=@LANGUAGE@
|
||||
export MEMORYSIZE=@MEMORY@
|
||||
export VERSION=\$(shell date -u +%y%m%d-%H%M)
|
||||
export VERSION=\$(shell \$(TOOLSDIR)/svnversion.sh \$(ROOTDIR))
|
||||
export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
|
||||
export MKFIRMWARE=@TOOL@
|
||||
export BMP2RB_MONO=@BMP2RB_MONO@
|
||||
|
|
|
@ -11,6 +11,10 @@ if(!-f "apps/version.h") {
|
|||
print "run this script in the root dir\n";
|
||||
exit;
|
||||
}
|
||||
# save the complete version string for VERSION file,
|
||||
# strip everything after space / hyphen for filename
|
||||
$longversion = $ARGV[0];
|
||||
$version =~ s/[ -].+//;
|
||||
|
||||
# -L allows find to follow symbolic links
|
||||
@files=`find -L . -name FILES`;
|
||||
|
@ -84,7 +88,6 @@ for(@entries) {
|
|||
`cp -p $_ $dir 2>/dev/null`;
|
||||
}
|
||||
|
||||
|
||||
if(!open(VERSION, "<apps/version.h")) {
|
||||
print "Can't read version.h\n";
|
||||
exit;
|
||||
|
@ -101,5 +104,12 @@ while(<VERSION>) {
|
|||
close(VERSION);
|
||||
close(THIS);
|
||||
|
||||
if(!open(VER, ">rockbox-$version/docs/VERSION")) {
|
||||
print "Can't create new docs/VERSION file\n";
|
||||
exit;
|
||||
}
|
||||
print VER $version;
|
||||
close(VER);
|
||||
|
||||
`tar -cjf rockbox-$version.tar.bz2 rockbox-$version`;
|
||||
`rm -rf rockbox-$version`;
|
||||
|
|
25
tools/svnversion.sh
Executable file
25
tools/svnversion.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id:$
|
||||
#
|
||||
|
||||
# Usage: svnversion.sh [source-root]
|
||||
|
||||
VERSIONFILE=docs/VERSION
|
||||
if [ -n "$1" ]; then TOP=$1; else TOP=..; fi
|
||||
if [ -r $TOP/$VERSIONFILE ]; then SVNVER=`cat $TOP/$VERSIONFILE`;
|
||||
else if [ `which svnversion 2>/dev/null` ];
|
||||
then SVNVER=r`svnversion $1`;
|
||||
if [ $SVNVER = "rexported" ]; then
|
||||
SVNVER=unknown;
|
||||
fi
|
||||
else SVNVER="unknown"; fi
|
||||
fi
|
||||
VERSION=$SVNVER-`date -u +%y%m%d`
|
||||
echo $VERSION
|
||||
|
Loading…
Reference in a new issue