127b3eb9dd468031f6f2830ee22fd4559843c5b2
Lunar Import build system from pr...

Lunar authored 10 years ago

1) AC_INIT([tor-browser-user-manual],
2)         m4_esyscmd([build-aux/git-version-gen .version]),
3)         [tbb-dev@lists.torproject.org])
4) 
5) AM_INIT_AUTOMAKE([foreign])
6) 
Lunar Retrieve Tor Browser versio...

Lunar authored 10 years ago

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)