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
1a9a5539
Commit
1a9a5539
authored
Nov 30, 2011
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build package manifests
parent
b95d7ad1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
1 deletion
+51
-1
manifest
support/manifest
+44
-0
package_nodejs
support/package_nodejs
+4
-1
package_npm
support/package_npm
+3
-0
No files found.
support/manifest
0 → 100755
View file @
1a9a5539
#!/bin/sh
set
-e
manifest_type
=
"
$1
"
if
[
"
$manifest_type
"
==
""
]
;
then
echo
"usage:
$0
<nodejs|npm>"
exit
1
fi
if
[
"
$AWS_ID
"
==
""
]
;
then
echo
"must set AWS_ID"
exit
1
fi
if
[
"
$AWS_SECRET
"
==
""
]
;
then
echo
"must set AWS_SECRET"
exit
1
fi
if
[
"
$S3_BUCKET
"
==
""
]
;
then
echo
"must set S3_BUCKET"
exit
1
fi
basedir
=
"
$(
cd
-P
"
$(
dirname
"
$0
"
)
"
&&
pwd
)
"
# make a temp directory
tempdir
=
"
$(
mktemp
-t
node_XXXX
)
"
rm
-rf
$tempdir
mkdir
-p
$tempdir
pushd
$tempdir
# generate manifest
$basedir
/aws/s3
ls
$S3_BUCKET
\
|
grep
"^
${
manifest_type
}
"
\
|
sed
-e
"s/
${
manifest_type
}
-
\(
[0-9.]*
\)\\
.tgz/
\\
1/"
\
|
sort
-r
\
>
manifest.
${
manifest_type
}
# upload manifest to s3
$basedir
/aws/s3 put
$S3_BUCKET
\
manifest.
${
manifest_type
}
support/package_nodejs
View file @
1a9a5539
...
...
@@ -33,7 +33,7 @@ mkdir -p $tempdir
pushd
$tempdir
# download and extract node
curl http://nodejs.org/dist/node-v
${
node_version
}
.tar.gz
-o
node.tgz
curl http://nodejs.org/dist/
v
${
node_version
}
/
node-v
${
node_version
}
.tar.gz
-o
node.tgz
tar
xzvf node.tgz
# go into node dir
...
...
@@ -56,3 +56,6 @@ tar czvf $tempdir/scons-${scons_version}.tgz *
# upload scons to s3
$basedir
/aws/s3 put
$S3_BUCKET
\
scons-
${
scons_version
}
.tgz
$tempdir
/scons-
${
scons_version
}
.tgz
# generate manifest
$basedir
/manifest nodejs
support/package_npm
View file @
1a9a5539
...
...
@@ -48,3 +48,6 @@ tar czvf $tempdir/npm-${npm_version}.tgz *
# upload npm to s3
$basedir
/aws/s3 put
$S3_BUCKET
\
npm-
${
npm_version
}
.tgz
$tempdir
/npm-
${
npm_version
}
.tgz
# generate manifest
$basedir
/manifest npm
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