Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
e95624ef
Commit
e95624ef
authored
Sep 23, 2011
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make indent an os-indepdent routine
parent
829d8894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
compile
bin/compile
+9
-1
No files found.
bin/compile
View file @
e95624ef
...
@@ -11,6 +11,14 @@ mktmpdir() {
...
@@ -11,6 +11,14 @@ mktmpdir() {
echo
$dir
echo
$dir
}
}
function
indent
()
{
c
=
's/^/ /'
case
$(
uname
)
in
Darwin
)
sed
-l
"
$c
"
;;
*
)
sed
-u
"
$c
"
;;
esac
}
# config
# config
NODE_VERSION
=
"0.4.7"
NODE_VERSION
=
"0.4.7"
NPM_VERSION
=
"1.0.27"
NPM_VERSION
=
"1.0.27"
...
@@ -60,7 +68,7 @@ fi
...
@@ -60,7 +68,7 @@ fi
# install dependencies with npm
# install dependencies with npm
echo
"-----> Installing dependencies with npm
$NPM_VERSION
"
echo
"-----> Installing dependencies with npm
$NPM_VERSION
"
cd
$BUILD_DIR
cd
$BUILD_DIR
HOME
=
"
$BUILD_DIR
"
$VENDORED_NODE
/bin/node
$VENDORED_NPM
/cli.js
install
2>&1 |
sed
-u
's/^/ /'
HOME
=
"
$BUILD_DIR
"
$VENDORED_NODE
/bin/node
$VENDORED_NPM
/cli.js
install
2>&1 |
indent
if
[
"
${
PIPESTATUS
[*]
}
"
!=
"0 0"
]
;
then
if
[
"
${
PIPESTATUS
[*]
}
"
!=
"0 0"
]
;
then
echo
" ! Failed to install dependencies with npm"
echo
" ! Failed to install dependencies with npm"
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment