Skip to content

Instantly share code, notes, and snippets.

@jadudm
Last active August 29, 2015 14:11
Show Gist options
  • Save jadudm/254f227db2774b18e4d1 to your computer and use it in GitHub Desktop.
Save jadudm/254f227db2774b18e4d1 to your computer and use it in GitHub Desktop.
Installing TinyASM
#!/bin/bash
echo Downloading TinyASM
pushd /tmp
if [ -f tiny.tar.gz ]
then
rm -f tiny.tar.gz
fi
curl -o tiny.tar.gz http://jadud.com/teaching/comporg-f14/resources/tiny.tar.gz
tar xvzf tiny.tar.gz
popd
mkdir -p ~/bin
echo Moving TinyASM to ~/bin.
pushd ~/bin
if [ -d tiny ]
then
rm -rf tiny
fi
mv /tmp/tiny tiny
popd
echo Adding TinyASM to your PATH
export PATH=~/bin/tiny/bin:$PATH
echo Done installing TinyASM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment