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") %]
......
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