Retrieve Tor Browser version and locales from its repository
Lunar

Lunar commited on 2014-05-18 21:28:58
Zeige 7 geänderte Dateien mit 22 Einfügungen und 5 Löschungen.

... ...
@@ -10,9 +10,9 @@
10 10
 /[a-z][a-z]/*.mo
11 11
 /[a-z][a-z]/*.stamp
12 12
 /[a-z][a-z]/*.page
13
-/[a-z][a-z]_[A-Z][A-Z]/*.mo
14
-/[a-z][a-z]_[A-Z][A-Z]/*.stamp
15
-/[a-z][a-z]_[A-Z][A-Z]/*.page
13
+/[a-z][a-z]-[A-Z][A-Z]/*.mo
14
+/[a-z][a-z]-[A-Z][A-Z]/*.stamp
15
+/[a-z][a-z]-[A-Z][A-Z]/*.page
16 16
 /media-symlinks.stamp
17 17
 
18 18
 /Makefile
... ...
@@ -6,7 +6,7 @@ HELP_ID = tor-browser-user-manual
6 6
 HELP_FILES = $(shell cd C && git ls-files '*.page')
7 7
 HELP_MEDIA = $(shell cd C && git ls-files 'media')
8 8
 HELP_PLATFORMS = windows macosx linux
9
-HELP_LINGUAS = ar de es fa fr it ko nl pl pt_PT ru tr vi zh_CN
9
+HELP_LINGUAS = @TOR_BROWSER_BUNDLE_LOCALES@
10 10
 
11 11
 .PHONY: html
12 12
 html: all media-symlinks.stamp
... ...
@@ -4,6 +4,23 @@ AC_INIT([tor-browser-user-manual],
4 4
 
5 5
 AM_INIT_AUTOMAKE([foreign])
6 6
 
7
+AC_ARG_WITH(tor-browser-bundle,
8
+            AC_HELP_STRING([--with-tor-browser-bundle=PROGRAM],
9
+                           [location of the clone of tor-browser-bundle.git]),
10
+            [tor_browser_bundle_dir=$withval])
11
+VERSIONS_PATH="${tor_browser_bundle_dir}/gitian/versions"
12
+if ! sh -n "$VERSIONS_PATH" 2>/dev/null; then
13
+    AC_MSG_ERROR([Please clone tor-browser-bundle.git and specify its location using --with-tor-browser-bundle])
14
+fi
15
+
16
+TOR_BROWSER_VERSION=$(. "$VERSIONS_PATH"; echo "$TORBROWSER_VERSION")
17
+if test "x$TOR_BROWSER_VERSION" = "x"; then
18
+    AC_MSG_ERROR([Couldn't determine Tor Browser version.])
19
+fi
20
+TOR_BROWSER_BUNDLE_LOCALES=$(. "$VERSIONS_PATH"; echo "$BUNDLE_LOCALES")
21
+
22
+AC_SUBST(TOR_BROWSER_BUNDLE_LOCALES)
23
+
7 24
 YELP_HELP_INIT
8 25
 
9 26
 AC_CONFIG_FILES([Makefile
... ...
@@ -1 +1 @@
1
-@VERSION@
1
+@TOR_BROWSER_VERSION@