AƱadido sistema de instalaciĆ³n
authorDaniel Garcia Moreno <dgarcia@emergya.es>
Wed, 24 Sep 2008 14:33:28 +0000 (16:33 +0200)
committerDaniel Garcia Moreno <dgarcia@emergya.es>
Wed, 24 Sep 2008 14:33:28 +0000 (16:33 +0200)
install.sh [new file with mode: 0755]
t3 [new file with mode: 0755]
t3show [new file with mode: 0755]
ttt.py
uninstall.sh [new file with mode: 0755]

diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..0b04262
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+mkdir $HOME/.ttt
+cp *.py $HOME/.ttt
+cp t3* /usr/local/bin/
diff --git a/t3 b/t3
new file mode 100755 (executable)
index 0000000..435cdcf
--- /dev/null
+++ b/t3
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd $HOME/.ttt/
+/usr/bin/python ttt.py $@
diff --git a/t3show b/t3show
new file mode 100755 (executable)
index 0000000..7718542
--- /dev/null
+++ b/t3show
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd $HOME/.ttt/
+/usr/bin/python show.py $@
diff --git a/ttt.py b/ttt.py
index 4a23316..964f8c1 100755 (executable)
--- a/ttt.py
+++ b/ttt.py
@@ -121,6 +121,7 @@ def show_grouped(trackers):
         else:
             projects[i.project] = diff
 
+    print ''
     for k,v in projects.items():
         p = '"' + k + '":'
         print 'Tiempo para %-20s %s' % (p, parse_time(v))
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100755 (executable)
index 0000000..640cb80
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+rm -rf $HOME/.ttt
+rm -rf /usr/local/bin/t3*