Added directory for modifications made to Tribler.
authorAdriana Draghici <adriana008@gmail.com>
Tue, 27 Oct 2009 08:38:02 +0000 (10:38 +0200)
committerAdriana Draghici <adriana008@gmail.com>
Tue, 27 Oct 2009 08:38:02 +0000 (10:38 +0200)
Signed-off-by: Adriana Draghici <adriana008@gmail.com>
tribler-mod/scrips/modify.sh [new file with mode: 0755]
tribler-mod/scrips/unmodify.sh [new file with mode: 0755]

diff --git a/tribler-mod/scrips/modify.sh b/tribler-mod/scrips/modify.sh
new file mode 100755 (executable)
index 0000000..baa1634
--- /dev/null
@@ -0,0 +1,2 @@
+
+for i in $(find -name '*.py' -type f | grep -v '.svn'); do sed -i.bak 's/print >>sys.stderr,/print >>sys.stderr, strftime("%d %b %Y %H:%M:%S", localtime())," ",/g' $i; sed -i.bak '1i\from time import localtime, strftime\n' $i; done;
diff --git a/tribler-mod/scrips/unmodify.sh b/tribler-mod/scrips/unmodify.sh
new file mode 100755 (executable)
index 0000000..dc91381
--- /dev/null
@@ -0,0 +1,2 @@
+for i in $(find -name '*.py' -type f | grep -v '.svn'); do sed -i.bak 's/print >>sys.stderr, strftime("%d %b %Y %H:%M:%S", localtime())," ",/print >>sys.stderr, /g' $i; sed -i.bak 's/from time import localtime, strftime\n/ /g' $i; done;
+