summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c2
-rw-r--r--manual/Makefile1
-rw-r--r--manual/intro/main.tex6
-rwxr-xr-xtools/configure2
-rwxr-xr-xtools/release12
-rwxr-xr-xtools/svnversion.sh25
6 files changed, 44 insertions, 4 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 15e1a7267e..09a7c2ebe6 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -815,7 +815,7 @@ int show_logo( void )
815 lcd_clear_display(); 815 lcd_clear_display();
816 lcd_double_height(true); 816 lcd_double_height(true);
817 lcd_puts(0, 0, rockbox); 817 lcd_puts(0, 0, rockbox);
818 lcd_puts(0, 1, appsversion); 818 lcd_puts_scroll(0, 1, appsversion);
819#endif 819#endif
820 820
821 return 0; 821 return 0;
diff --git a/manual/Makefile b/manual/Makefile
index c55ff12f6d..19a5d3d7be 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -16,6 +16,7 @@ manual-prep: rockbox.tex
16 @mkdir -p $(OBJDIR) 16 @mkdir -p $(OBJDIR)
17 @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \; 17 @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
18 @find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \; 18 @find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \;
19 @../tools/svnversion.sh > version.tex
19 @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex 20 @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
20 @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex 21 @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
21 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex 22 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
diff --git a/manual/intro/main.tex b/manual/intro/main.tex
index c41a6ea6c6..6eceacabb7 100644
--- a/manual/intro/main.tex
+++ b/manual/intro/main.tex
@@ -7,7 +7,7 @@
7% \/ \/ \/ \/ \/ 7% \/ \/ \/ \/ \/
8% - M A N U A L - 8% - M A N U A L -
9% 9%
10% $Id:$ 10% $Id$
11% 11%
12% Copyright (C) 2006 The Rockbox Manual Team 12% Copyright (C) 2006 The Rockbox Manual Team
13% 13%
@@ -44,6 +44,10 @@ contributors.
44\copyright~2004 Christi Alice Scarborough, 44\copyright~2004 Christi Alice Scarborough,
45\copyright~2003 Jos\'{e} Maria Garcia-Valdecasas Bernal \& Peter Schlenker. 45\copyright~2003 Jos\'{e} Maria Garcia-Valdecasas Bernal \& Peter Schlenker.
46\end{quote} 46\end{quote}
47\vspace{3mm}
48\begin{center}
49\IfFileExists{version.tex}{Build with \LaTeX{} from version \input{version.tex}}{}
50\end{center}
47 51
48\vspace{\fill} 52\vspace{\fill}
49\begin{quote} 53\begin{quote}
diff --git a/tools/configure b/tools/configure
index 26d41404c6..174beed644 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1579,7 +1579,7 @@ export OBJDIR=@PWD@
1579export BUILDDIR=@PWD@ 1579export BUILDDIR=@PWD@
1580export LANGUAGE=@LANGUAGE@ 1580export LANGUAGE=@LANGUAGE@
1581export MEMORYSIZE=@MEMORY@ 1581export MEMORYSIZE=@MEMORY@
1582export VERSION=\$(shell date -u +%y%m%d-%H%M) 1582export VERSION=\$(shell \$(TOOLSDIR)/svnversion.sh \$(ROOTDIR))
1583export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d') 1583export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1584export MKFIRMWARE=@TOOL@ 1584export MKFIRMWARE=@TOOL@
1585export BMP2RB_MONO=@BMP2RB_MONO@ 1585export BMP2RB_MONO=@BMP2RB_MONO@
diff --git a/tools/release b/tools/release
index 1a0b245a2f..3c5d5037fe 100755
--- a/tools/release
+++ b/tools/release
@@ -11,6 +11,10 @@ if(!-f "apps/version.h") {
11 print "run this script in the root dir\n"; 11 print "run this script in the root dir\n";
12 exit; 12 exit;
13} 13}
14# save the complete version string for VERSION file,
15# strip everything after space / hyphen for filename
16$longversion = $ARGV[0];
17$version =~ s/[ -].+//;
14 18
15# -L allows find to follow symbolic links 19# -L allows find to follow symbolic links
16@files=`find -L . -name FILES`; 20@files=`find -L . -name FILES`;
@@ -84,7 +88,6 @@ for(@entries) {
84 `cp -p $_ $dir 2>/dev/null`; 88 `cp -p $_ $dir 2>/dev/null`;
85} 89}
86 90
87
88if(!open(VERSION, "<apps/version.h")) { 91if(!open(VERSION, "<apps/version.h")) {
89 print "Can't read version.h\n"; 92 print "Can't read version.h\n";
90 exit; 93 exit;
@@ -101,5 +104,12 @@ while(<VERSION>) {
101close(VERSION); 104close(VERSION);
102close(THIS); 105close(THIS);
103 106
107if(!open(VER, ">rockbox-$version/docs/VERSION")) {
108 print "Can't create new docs/VERSION file\n";
109 exit;
110}
111print VER $version;
112close(VER);
113
104`tar -cjf rockbox-$version.tar.bz2 rockbox-$version`; 114`tar -cjf rockbox-$version.tar.bz2 rockbox-$version`;
105`rm -rf rockbox-$version`; 115`rm -rf rockbox-$version`;
diff --git a/tools/svnversion.sh b/tools/svnversion.sh
new file mode 100755
index 0000000000..5e96bf925c
--- /dev/null
+++ b/tools/svnversion.sh
@@ -0,0 +1,25 @@
1#!/bin/bash
2# __________ __ ___.
3# Open \______ \ ____ ____ | | _\_ |__ _______ ___
4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7# \/ \/ \/ \/ \/
8# $Id:$
9#
10
11# Usage: svnversion.sh [source-root]
12
13VERSIONFILE=docs/VERSION
14if [ -n "$1" ]; then TOP=$1; else TOP=..; fi
15if [ -r $TOP/$VERSIONFILE ]; then SVNVER=`cat $TOP/$VERSIONFILE`;
16else if [ `which svnversion 2>/dev/null` ];
17 then SVNVER=r`svnversion $1`;
18 if [ $SVNVER = "rexported" ]; then
19 SVNVER=unknown;
20 fi
21else SVNVER="unknown"; fi
22fi
23VERSION=$SVNVER-`date -u +%y%m%d`
24echo $VERSION
25