[Player-dev] CR: player/app/gtk/Umakefil
Nicholas Hart nhart at real.comThis ensures that we generate the correct README file for all locales.
For head and gold branch.
Index: Umakefil
===================================================================
RCS file: /cvsroot/player/app/gtk/Umakefil,v
retrieving revision 1.78
diff -u -w -r1.78 Umakefil
--- Umakefil 17 Aug 2004 22:41:19 -0000 1.78
+++ Umakefil 18 Aug 2004 22:47:15 -0000
@@ -224,7 +224,8 @@
ProgramTarget("realplay.bin")
project.AddCopyTargets("realplay")
verfile = "realplayer.ver"
-
+ readme_src = "README.realplay.in"
+ readme_dest = "README.realplay"
else:
project.AddDefines('APP_NAME_SHORT="hxplay"')
project.AddDefines('APP_NAME_LONG="Helix Player"')
@@ -236,10 +237,14 @@
ProgramTarget("hxplay.bin")
project.AddCopyTargets("hxplay")
verfile = "hxplayer.ver"
+ readme_src = "README.realplay.in"
+ readme_dest = "README.realplay"
DependTarget()
-UpdateReleaseNotes("README.hxplay.in", "README.hxplay", verfile)
-UpdateReleaseNotes("README.realplay.in", "README.realplay", verfile)
-
+for entry in os.listdir("locale"):
+ path = os.path.join("locale", entry)
+ src_path = os.path.join(path, readme_src)
+ if os.path.isdir(path) and os.path.isfile(src_path):
+ UpdateReleaseNotes(src_path, os.path.join(path, readme_dest),
verfile)
--
Nicholas Hart
nhart at real.com
Technical Lead, Helix Player
https://player.helixcommunity.org
http://www.real.com