Skip to content

Instantly share code, notes, and snippets.

@maluta
Created November 25, 2009 19:43
Show Gist options
  • Save maluta/242972 to your computer and use it in GitHub Desktop.
Save maluta/242972 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Download, Compile and Install
_wget=`which wget`
_mkdir=`which mkdir`
$_mkdir translate
cd translate
$_wget http://github.com/maluta/junk/raw/master/translate.pro
$_wget http://github.com/maluta/junk/raw/master/translate.h
$_wget http://github.com/maluta/junk/raw/master/translate.cpp
_qmake=`which qmake 2> /dev/null`
if [ "$_qmake" = "" ]
then
_qmake=`which qmake-qt4 2> /dev/null`
fi
$_qmake translate.pro
_make=`which make 2> /dev/null`
$_make
echo ""
# and run...
./translate
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment