Skip to content

Commit

Permalink
Better platform agnostic indent
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Jan 25, 2012
1 parent 8c76298 commit 7461c06
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bin/compile
Expand Up @@ -7,21 +7,19 @@ set -e
# if any command in a pipe fails, kill the script (useful for indent)
set -o pipefail

indent() {
while read line; do
echo " ${line}"
done
}

mktmpdir() {
dir=$(mktemp -t node-$1-XXXX)
rm -rf $dir
mkdir -p $dir
echo $dir
}

function indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";;
*) sed -u "$c";;
esac
}

# config
MONO_VERSION="2.10.8"
XSP_VERSION="2.10.2"
Expand Down

0 comments on commit 7461c06

Please sign in to comment.