Created
September 18, 2012 20:13
-
-
Save pfiled/3745562 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: build-node-rpm.sh v0.0.0" | |
exit 1 | |
fi | |
sudo yum install rpmdevtools gcc-c++ openssl-devel libstdc++-devel zlib-devel | |
cd $HOME | |
rpmdev-setuptree | |
cd rpmbuild/SOURCES | |
wget http://nodejs.org/dist/${1}/node-${1}.tar.gz | |
cd $HOME | |
git clone https://github.com/kazuhisya/nodejs-rpm.git | |
cd nodejs-rpm | |
git checkout ${1} | |
rpmbuild -ba --clean nodejs.spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment