Permalink
Browse files

compile and cleanup scripts

  • Loading branch information...
1 parent f55676c commit 1cc6cf581201d4caa112b54cf81bbe286d48632d @MarwanG MarwanG committed Jul 12, 2013
Showing with 44 additions and 0 deletions.
  1. +13 −0 cleanup.sh
  2. +31 −0 compile.sh
View
@@ -0,0 +1,13 @@
+#!/bin/sh
+#cleanup.sh
+
+if [ -f Makefile ]; then
+ make cleanall
+fi
+rm -rf Makefile
+rm -rf configure
+rm -rf config.status
+rm -rf autom4te.cache
+rm -rf config.log
+rm -rf arbogen_`cat VERSION`_1
+rm -rf *~
View
@@ -0,0 +1,31 @@
+#!/bin/sh
+#config.sh
+#if output of makefile needs to be a byte pass as parameter arbogen.byte
+
+if [ -f configure ]; then
+ echo "checking for configure file... ok"
+else
+ echo "checking for configure file... no"
+ if which autoconf >/dev/null; then
+ echo "checking for autoconf... ok"
+ autoconf
+ echo "creating configure file... ok"
+ else
+ echo "checking for autoconf... no"
+ exit 1;
+ fi
+fi
+
+echo "executing configure script"
+./configure
+
+if [ -f Makefile ]; then
+ echo "checking for Makefile... ok"
+ make $1
+else
+ echo "checking for Makefile... no"
+ echo "error... Aborting"
+ exit 1;
+fi
+
+

0 comments on commit 1cc6cf5

Please sign in to comment.