Rhino

From GeilThings

Jump to: navigation, search
Rhino
General
Version 1.7R4
Stable 1.7R4
Function Programming Language
Scripts
Cli js


Contents

General

Installing Rhino

  • Changed hosting from ftp.mozilla.org to GitHub for 1.7R4.
RAWNEWVERSION=`curl -sd "action=ask&query=[[Rhino]]|%3FStable&format=json" http://www.geilthings.com/api.php` 
NEWVERSION=`echo "$RAWNEWVERSION" | grep -Po '^.*?\K(?<=Stable\":\[\").*?(?=\")'`  
echo $NEWVERSION
# Version is like 1.7R4, the download version is like 1_7R4
NEWVERSIONDOWNLOAD=$(echo $NEWVERSION|sed 's/\./_/g')
echo $NEWVERSIONDOWNLOAD
 
cd /opt
wget https://github.com/downloads/mozilla/rhino/rhino${NEWVERSIONDOWNLOAD}.zip
unzip rhino${NEWVERSIONDOWNLOAD}.zip
 
rm -f /opt/rhino
ln -s /opt/rhino${NEWVERSIONDOWNLOAD} /opt/rhino

Upgrading Rhino

  • TODO: This is almost the same as Installing. Consolidate.
RAWNEWVERSION=`curl -sd "action=ask&query=[[Rhino]]|%3FStable&format=json" http://www.geilthings.com/api.php` 
NEWVERSION=`echo "$RAWNEWVERSION" | grep -Po '^.*?\K(?<=Stable\":\[\").*?(?=\")'`  
echo $NEWVERSION
# Version is like 1.7R4, the download version is like 1_7R4
NEWVERSIONDOWNLOAD=$(echo $NEWVERSION|sed 's/\./_/g')
echo $NEWVERSIONDOWNLOAD
 
cd /opt
wget https://github.com/downloads/mozilla/rhino/rhino${NEWVERSIONDOWNLOAD}.zip
unzip rhino${NEWVERSIONDOWNLOAD}.zip
 
rm -f /opt/rhino
ln -s /opt/rhino${NEWVERSIONDOWNLOAD} /opt/rhino

Comments

blog comments powered by Disqus