mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
504 B
18 lines
504 B
#!/bin/sh
|
|
|
|
follow_links() {
|
|
# Use `readlink -f` if it exists, but fall back to manually following symlnks
|
|
# for systems (like older Mac OS) where it doesn't.
|
|
file="$1"
|
|
if readlink -f "$file" 2>&-; then return; fi
|
|
|
|
while [ -h "$file" ]; do
|
|
file="$(readlink "$file")"
|
|
done
|
|
echo "$file"
|
|
}
|
|
|
|
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
|
|
path=`dirname "$(follow_links "$0")"`
|
|
exec "{{{dart}}}" --enable-asserts {{{environment-constants}}} "$path/{{{executable}}}" "$@"
|