Skip to content
Snippets Groups Projects
Commit 2ccb1d0b authored by boklm's avatar boklm Committed by morgan
Browse files

Bug 41231: Add var/faketime_date and var/faketime_setup

Add var/faketime_date, in order to use it in an external script.
At the same time we add var/faketime_setup to avoid duplicating the
lines setting up faketime.
parent 061a2d3c
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,7 @@ dmg_tmpdir=$(mktemp -d)
hfsfile="$dmg_tmpdir/tbb-uncompressed.dmg"
# hfsplus sets all the times to time(NULL)
export LD_PRELOAD=[% c("var/faketime_path") %]
export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
[% c("var/faketime_setup") %]
src_dir=[% src %]
# 1 for ceiling and 1 for the inode
......
......@@ -11,8 +11,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
./autogen.sh
./configure [% c("var/configure_opt") %] --disable-libevent-regress --disable-samples --disable-openssl --prefix=$distdir
[% IF c("var/macos") -%]
export LD_PRELOAD=[% c("var/faketime_path") %]
export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
[% c("var/faketime_setup") %]
[% END -%]
make -j[% c("num_procs") %]
make install
......
......@@ -94,8 +94,7 @@ find -type f -print0 | xargs -0 [% c("touch") %]
[% IF c("var/linux-cross") %]--build=x86_64-linux-gnu[% END %] \
--enable-gpl --prefix="$distdir" [% c("var/configure_opt") %]
[% IF c("var/macos") -%]
export LD_PRELOAD=[% c("var/faketime_path") %]
export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
[% c("var/faketime_setup") %]
[% END -%]
make -j[% c("num_procs") %]
make install
......
......@@ -108,6 +108,11 @@ var:
Project_Name_Channel: '[% c("var/Project_Name") %] [% c("var/channel") FILTER ucfirst %]'
display_name: '[% c("var/Project_Name_Channel") %]'
exe_name: firefox
faketime_date: "[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
faketime_setup: |
export LD_PRELOAD=[% c("var/faketime_path") %]
export FAKETIME='[% c("var/faketime_date") %]'
locale_ja: ja
# When adding new languages, add the equivalent NSIS name to
# projects/browser/windows-installer/add-strings.py.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment