summaryrefslogtreecommitdiffstats
path: root/utils/common/deploy-rbutil.py
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-05-05 17:19:00 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-05-05 17:19:00 +0000
commit6ba552cc5dafcf20522a177095447fb82cfa2040 (patch)
treeea1aae9107d2731469fd46901c8d2544225d740d /utils/common/deploy-rbutil.py
parente90d53cea8e5e7add86fc03918d720a145dbf462 (diff)
downloadrockbox-6ba552cc5dafcf20522a177095447fb82cfa2040.tar.gz
rockbox-6ba552cc5dafcf20522a177095447fb82cfa2040.tar.bz2
rockbox-6ba552cc5dafcf20522a177095447fb82cfa2040.zip
deploy.py: support adding a build id.
Add support for passing and injecting a build ID to the souces prior to compiling. Allows to easily create rebuilds of Rockbox Utility without creating false positives on update detection. Fix a typo in version.h. Thanks to sideral for noting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29825 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/common/deploy-rbutil.py')
-rwxr-xr-xutils/common/deploy-rbutil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/common/deploy-rbutil.py b/utils/common/deploy-rbutil.py
index 3273a295e8..31b33da4fb 100755
--- a/utils/common/deploy-rbutil.py
+++ b/utils/common/deploy-rbutil.py
@@ -53,8 +53,9 @@ deploy.progexe = {
"linux2" : "RockboxUtility"
}
deploy.regreplace = {
- "rbutil/rbutilqt/version.h" : ["SVN \$.*\$", "SVN r%REVISION%"],
- "rbutil/rbutilqt/Info.plist" : ["SVN \$.*\$", "SVN r%REVISION%"]
+ "rbutil/rbutilqt/version.h" : [["SVN \$.*\$", "SVN r%REVISION%"],
+ ["(^#define BUILDID).*", "\\1 \"-%BUILDID%\""]],
+ "rbutil/rbutilqt/Info.plist" : [["SVN \$.*\$", "SVN r%REVISION%"]],
}
# OS X 10.6 defaults to gcc 4.2. Building universal binaries that are
# compatible with 10.4 requires using gcc-4.0.