[tbb-commits] [tor-browser-build/master] Move projects/release/config build to a separate file
boklm at torproject.org
boklm at torproject.org
Mon Aug 7 22:48:42 UTC 2017
commit c87cfc7291c7faf95c7afc8af693a7f689cdcc0a
Author: Nicolas Vigier <boklm at torproject.org>
Date: Tue Aug 8 00:04:18 2017 +0200
Move projects/release/config build to a separate file
---
projects/release/build | 26 ++++++++++++++++++++++++++
projects/release/config | 27 ---------------------------
2 files changed, 26 insertions(+), 27 deletions(-)
diff --git a/projects/release/build b/projects/release/build
new file mode 100644
index 0000000..9dbe709
--- /dev/null
+++ b/projects/release/build
@@ -0,0 +1,26 @@
+#!/bin/sh
+[% c("var/set_default_env") -%]
+# reset HOME which was changed by var/set_default_env, for gpg
+[% IF ENV.HOME %]export HOME="[% ENV.HOME %]"[% END %]
+destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
+mkdir -p "$destdir"
+[% IF c("var/torbrowser-windows-i686") -%]
+ mv [% c('input_files_by_name/windows-i686') %]/* "$destdir"/
+ mv [% c('input_files_by_name/windows-expert-bundle') %]/* "$destdir"/
+% END -%]
+[% IF c("var/torbrowser-osx-x86_64") -%]
+ mv [% c('input_files_by_name/osx-x86_64') %]/* "$destdir"/
+[% END -%]
+[% IF c("var/torbrowser-linux-i686") -%]
+ mv [% c('input_files_by_name/linux-i686') %]/* "$destdir"/
+[% END -%]
+[% IF c("var/torbrowser-linux-x86_64") -%]
+ mv [% c('input_files_by_name/linux-x86_64') %]/* "$destdir"/
+ mv [% c('input_files_by_name/sandbox-linux-x86_64') %] "$destdir"/sandbox-[% pc('sandbox', 'version') %]-linux64.zip
+[% END -%]
+cd "$destdir"
+sha256sum $(ls -1 *.exe *.tar.xz *.dmg *.mar *.zip | grep -v '\.incremental\.mar$' | sort) > sha256sums-unsigned-build.txt
+[% IF c("var/sign_build") -%]
+ gpg -abs [% c("var/sign_build_gpg_opts") %] sha256sums-unsigned-build.txt
+[% END -%]
+cat sha256sums-unsigned-build.txt
diff --git a/projects/release/config b/projects/release/config
index 43a36e8..8beea7e 100644
--- a/projects/release/config
+++ b/projects/release/config
@@ -117,30 +117,3 @@ input_files:
- torbrowser-windows-i686
- expert-bundle
-build: |
- #!/bin/sh
- [% c("var/set_default_env") -%]
- # reset HOME which was changed by var/set_default_env, for gpg
- [% IF ENV.HOME %]export HOME="[% ENV.HOME %]"[% END %]
- destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
- mkdir -p "$destdir"
- [% IF c("var/torbrowser-windows-i686") -%]
- mv [% c('input_files_by_name/windows-i686') %]/* "$destdir"/
- mv [% c('input_files_by_name/windows-expert-bundle') %]/* "$destdir"/
- [% END -%]
- [% IF c("var/torbrowser-osx-x86_64") -%]
- mv [% c('input_files_by_name/osx-x86_64') %]/* "$destdir"/
- [% END -%]
- [% IF c("var/torbrowser-linux-i686") -%]
- mv [% c('input_files_by_name/linux-i686') %]/* "$destdir"/
- [% END -%]
- [% IF c("var/torbrowser-linux-x86_64") -%]
- mv [% c('input_files_by_name/linux-x86_64') %]/* "$destdir"/
- mv [% c('input_files_by_name/sandbox-linux-x86_64') %] "$destdir"/sandbox-[% pc('sandbox', 'version') %]-linux64.zip
- [% END -%]
- cd "$destdir"
- sha256sum $(ls -1 *.exe *.tar.xz *.dmg *.mar *.zip | grep -v '\.incremental\.mar$' | sort) > sha256sums-unsigned-build.txt
- [% IF c("var/sign_build") -%]
- gpg -abs [% c("var/sign_build_gpg_opts") %] sha256sums-unsigned-build.txt
- [% END -%]
- cat sha256sums-unsigned-build.txt
More information about the tbb-commits
mailing list