Permalink
Browse files

add gl: compiles opengl apps

  • Loading branch information...
1 parent d41fffe commit b21b7d6cd21abbded3f3580e15b2a946644ca532 Andrew Wong committed Mar 4, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 gl
View
8 gl
@@ -0,0 +1,8 @@
+#!/bin/bash
+if [[ -f $1 ]]; then
+ g++ -lGL -lGLU -lglut $1 -o ${1%.*} && ./${1%.*}
+else
+ echo "Usage: gl FILE"
+ exit 1
+fi
+

0 comments on commit b21b7d6

Please sign in to comment.