diff options
-rw-r--r-- | apps/misc.c | 2 | ||||
-rw-r--r-- | manual/Makefile | 1 | ||||
-rw-r--r-- | manual/intro/main.tex | 6 | ||||
-rwxr-xr-x | tools/configure | 2 | ||||
-rwxr-xr-x | tools/release | 12 | ||||
-rwxr-xr-x | tools/svnversion.sh | 25 |
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@ | |||
1579 | export BUILDDIR=@PWD@ | 1579 | export BUILDDIR=@PWD@ |
1580 | export LANGUAGE=@LANGUAGE@ | 1580 | export LANGUAGE=@LANGUAGE@ |
1581 | export MEMORYSIZE=@MEMORY@ | 1581 | export MEMORYSIZE=@MEMORY@ |
1582 | export VERSION=\$(shell date -u +%y%m%d-%H%M) | 1582 | export VERSION=\$(shell \$(TOOLSDIR)/svnversion.sh \$(ROOTDIR)) |
1583 | export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d') | 1583 | export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d') |
1584 | export MKFIRMWARE=@TOOL@ | 1584 | export MKFIRMWARE=@TOOL@ |
1585 | export BMP2RB_MONO=@BMP2RB_MONO@ | 1585 | export 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 | |||
88 | if(!open(VERSION, "<apps/version.h")) { | 91 | if(!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>) { | |||
101 | close(VERSION); | 104 | close(VERSION); |
102 | close(THIS); | 105 | close(THIS); |
103 | 106 | ||
107 | if(!open(VER, ">rockbox-$version/docs/VERSION")) { | ||
108 | print "Can't create new docs/VERSION file\n"; | ||
109 | exit; | ||
110 | } | ||
111 | print VER $version; | ||
112 | close(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 | |||
13 | VERSIONFILE=docs/VERSION | ||
14 | if [ -n "$1" ]; then TOP=$1; else TOP=..; fi | ||
15 | if [ -r $TOP/$VERSIONFILE ]; then SVNVER=`cat $TOP/$VERSIONFILE`; | ||
16 | else if [ `which svnversion 2>/dev/null` ]; | ||
17 | then SVNVER=r`svnversion $1`; | ||
18 | if [ $SVNVER = "rexported" ]; then | ||
19 | SVNVER=unknown; | ||
20 | fi | ||
21 | else SVNVER="unknown"; fi | ||
22 | fi | ||
23 | VERSION=$SVNVER-`date -u +%y%m%d` | ||
24 | echo $VERSION | ||
25 | |||