GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 73c030f1 authored by boklm's avatar boklm
Browse files

Add var/set_default_env and use it in all build scripts

parent 51493b7b
#!/bin/sh
set -e
rootdir=$(pwd)
#!/bin/bash
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/binutils
[% IF c("var/linux") %]
# Config options for hardening-wrapper
......
#!/bin/bash
set -e
[% c("var/set_default_env") -%]
tar xf [% project %]-[% c("version") %].tar.gz
mv [% project %]-[% c("version") %] [% project %]
[% c('tar', {
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
......
#!/bin/bash
set -e
[% c("var/set_default_env") -%]
[% FOREACH lang = c('var/locales') %]
[% SET lang = tmpl(lang) %]
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% IF c("var/windows") -%]
mkdir -p /var/tmp/dist
tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/gcc') %]
......@@ -17,12 +16,6 @@ rootdir=$(pwd)
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
export SHELL=/bin/bash
export HOME=$rootdir
export TZ=UTC
export LC_ALL=C
umask 0022
[% IF c("var/linux") %]
tar xf $rootdir/[% c('input_files_by_name/binutils') %]
export PATH="/var/tmp/dist/binutils/bin:$PATH"
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/fonts
mkdir -p $distdir
tar xf [% project %]-[% c("version") %].tar.gz
......
#!/bin/sh
set -e
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir /var/tmp/build
tar -C /var/tmp/build -xf [% project %]-[% c("version") %].tar.bz2
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/dist
......
......@@ -20,8 +20,7 @@ var:
# a list of install targets.
build_go_lib: |
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
#!/bin/sh
set -e
#!/bin/bash
[% c("var/set_default_env") -%]
tar xf [% project %]-[% c('version') %].tar.gz
cd [% project %]-[% c('version') %]
# patch makexpi.sh because we don't have a git repository
......
#!/bin/sh
set -e
#!/bin/bash
[% c("var/set_default_env") -%]
distdir=$(pwd)/dist
mkdir -p $distdir/[% project %]
tar xf [% project %]-[% c('version') %].tar.gz
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/dist
tar -C /var/tmp/dist -xf [% c('input_files_by_name/cmake') %]
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
destdir='[% dest_dir _ '/' _ c('filename') %]'
mkdir -p "$destdir"
mv -f [% c('input_files_by_name/SDK') %] "$destdir"/apple-uni-sdk.deb
......
#!/bin/sh
set -e
rootdir=$(pwd)
#!/bin/bash
[% c("var/set_default_env") -%]
distdir="/var/tmp/dist/[% project %]"
mkdir -p "$distdir"
tar xzf [% c('input_files_by_name/SDK') %]
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %]
distdir=/var/tmp/dist/[% project %]
[% IF c("var/osx") %]
......
#!/bin/sh
set -e
rootdir=$(pwd)
#!/bin/bash
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
mkdir /var/tmp/build
......
#!/bin/sh
set -e
rootdir=$(pwd)
#!/bin/bash
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
# remove hardening wrappers
rm -Rf /var/tmp/dist/mingw-w64/helpers
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %]
distdir=/var/tmp/dist/[% project %]
[% IF c("var/osx") %]
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
......@@ -119,8 +119,7 @@ input_files:
build: |
#!/bin/sh
set -e
export LC_ALL=C
[% c("var/set_default_env") -%]
destdir="[% dest_dir _ '/' _ c("var/publish_dir") %]"
mkdir -p "$destdir"
[% IF c("var/torbrowser-windows-i686") -%]
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
[% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p $distdir
......
#!/bin/bash
set -e
[% c("var/set_default_env") -%]
tar xf [% project %]-[% c("version") %].tar.gz
mv [% project %]-[% c("version") %] [% project %]
[% c('tar', {
......
#!/bin/bash
set -e
rootdir=$(pwd)
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
export TZ=UTC
export LC_ALL=C
export TORBROWSER_VERSION='[% c("version") %]'
umask 0022
mkdir -p $distdir
......
#!/bin/sh
set -e
#!/bin/bash
[% c("var/set_default_env") -%]
tar xvf [% project %]-[% c('version') %].tar.gz
cd [% project %]-[% c('version') %]
make package
......
#!/bin/bash
set -e
rootdir=$(pwd)
export TZ=UTC
export LC_ALL=C
umask 0022
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
#!/bin/sh
set -e
#!/bin/bash
[% c("var/set_default_env") -%]
tar xvf [% project %]-[% c('version') %].tar.gz
cd [% project %]-[% c('version') %]
mkdir -p pkg
......
#!/bin/bash
set -e
rootdir=$(pwd)
export TZ=UTC
export LC_ALL=C
umask 0022
[% c("var/set_default_env") -%]
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
distdir=/var/tmp/dist/[% project %]
mkdir -p /var/tmp/build
......
......@@ -67,6 +67,16 @@ var:
mv -f -- "$rezip_tmpdir/new.zip" [% c("rezip_file") %]
rm -Rf "$rezip_tmpdir"
set_default_env: |
set -e
[% FOREACH env = c('ENV') -%]
export [% env.key %]="[% env.value %]"
[% END -%]
rootdir=$(pwd)
export SHELL=/bin/bash
export HOME=$rootdir
umask 0022
targets:
notarget: linux-x86_64
noint:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment