From a2b9c11697a7c5626c72959710e72aa112cfb133 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Mon, 6 Apr 2009 17:04:18 +0000 Subject: [PATCH] Added make install and uninstall git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@123 014f5005-505e-4b48-8d0a-63407b615a7c --- CHANGELOG | 3 ++- Makefile | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 17f37ce..6e4a9aa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -68,4 +68,5 @@ 0.10 - In optimizer, added a function that tokenizes an expression - Document about complexity of operations -- Bug: error in update operation, it changed the original tuple, so also other relations using the same tuple would change. Now it copies it. \ No newline at end of file +- Bug: error in update operation, it changed the original tuple, so also other relations using the same tuple would change. Now it copies it. +- Added make install and uninstall \ No newline at end of file diff --git a/Makefile b/Makefile index 0709f67..c946934 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,20 @@ default: echo "sorry, no default action" +uninstall: + rm -rf /opt/relational + rm -f /usr/local/bin/relational + +install: + mkdir /opt/relational + cp -R relational relational_gui /opt/relational/ + cp relational_gui.py /opt/relational + chmod -R 555 /opt/relational/ + echo "#!/bin/bash" > /usr/local/bin/relational + echo "/opt/relational/relational_gui.py" >> /usr/local/bin/relational + chmod 555 /usr/local/bin/relational + + source: clean rm -rf /tmp/relational/ mkdir /tmp/relational/