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
c542ee75
Commit
c542ee75
authored
Jan 13, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorder config
parent
6e0bf967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
compile
bin/compile
+13
-13
No files found.
bin/compile
View file @
c542ee75
...
...
@@ -4,6 +4,17 @@
# clean up leaking environment
unset
GIT_DIR
# config
SCONS_VERSION
=
"1.2.0"
S3_BUCKET
=
"heroku-buildpack-nodejs"
# parse and derive params
BUILD_DIR
=
$1
CACHE_DIR
=
$2
LP_DIR
=
`
cd
$(
dirname
$0
)
;
cd
..
;
pwd
`
CACHE_STORE_DIR
=
"
$CACHE_DIR
/node_modules/
$NPM_VERSION
"
CACHE_TARGET_DIR
=
"
$BUILD_DIR
/node_modules"
function
error
()
{
echo
" !
$*
"
exit
1
...
...
@@ -67,27 +78,16 @@ function package_resolve_version() {
echo
"rv:
${
resolved_version
}
"
}
# config
DEFAULT_NODE_VERSION
=
"0.4.7"
DEFAULT_NPM_VERSION
=
"1.0.94"
SCONS_VERSION
=
"1.2.0"
S3_BUCKET
=
"heroku-buildpack-nodejs"
# parse and derive params
BUILD_DIR
=
$1
CACHE_DIR
=
$2
LP_DIR
=
`
cd
$(
dirname
$0
)
;
cd
..
;
pwd
`
CACHE_STORE_DIR
=
"
$CACHE_DIR
/node_modules/
$NPM_VERSION
"
CACHE_TARGET_DIR
=
"
$BUILD_DIR
/node_modules"
declare
-A
engine_versions
declare
-A
engine_defaults
declare
-A
engine_requested
engine_versions[
"node"
]=
$(
manifest_versions
"node"
)
engine_defaults[
"node"
]=
"0.4.7"
engine_requested[
"node"
]=
$(
package_engine_version
"node"
)
engine_versions[
"npm"
]=
$(
manifest_versions
"npm"
)
engine_defaults[
"npm"
]=
"1.0.94"
engine_requested[
"npm"
]=
$(
package_engine_version
"npm"
)
package_resolve_version
"node"
...
...
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