BSD systems don't place bash in /bin and a lot of the dart tools
hardcode a #!/bin/bash shebang that fails the 'all' target build
(not able to execute dart2js since the interpreter is not found).
Solve the issue by using #!/usr/bin/env as the shebang. For scripts
that need to pass arguments to bash modify the script to use the set
command as the first executed line of shell.
BUG=
R=whesse@google.com
Review URL: https://codereview.chromium.org/1552313002 .
For building Debian wheezy compatable binary packages we need to set up a number
of Debian chroot environments. To avoid to many manual steps this script should
do the bulk of this work.
To create a chroot environment for building 64-bit stable:
$ tools/create_debian_chroot.sh amd64 stable /tmp/debian_amd64_stable
Then building the Debian image should be as easy as
$ sudo chroot /tmp/debian_amd_stable
$ cd /b/dart
$ tools/create_tarball.py
$ tools/build_debian_packages.py amd64
The build_debian_packages.py is still missing the architecture argument.
R=ricow@google.com, whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//193723006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34162 260f80e4-7a28-3924-810f-c04153c831b5