Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

management files

  • Loading branch information...
commit c1b40240951bd858deea3044e92be7284e0d23b8 1 parent 318a61c
@youknowone authored
Showing with 21 additions and 2 deletions.
  1. +9 −0 .gitignore
  2. +12 −2 test
View
9 .gitignore
@@ -0,0 +1,9 @@
+# temporary files
+*.swp
+*~
+*.DS_Store
+
+# haskell remains
+euler???
+*.o
+*.hi
View
14 test
@@ -1,3 +1,13 @@
#!/bin/bash
-ghc euler$1
-./euler$1
+
+if [ $1 = 'clean' ]; then
+ rm *.hi
+ rm *.o
+ rm euler???
+ exit
+fi
+
+ghc euler$1 > /dev/null
+if [ $? == 0 ]; then
+ ./euler$1
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.