From a55839ff8e8744f0dd598fa480557b07f86911a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Nov 2003 21:49:59 +0000 Subject: syrep binary external git-svn-id: file:///home/lennart/svn/public/syrep-chub/trunk@3 4c8cc7d0-f3cb-0310-ad32-ddc431b48844 --- diff.cgi | 2 +- info.cgi | 2 +- sch.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diff.cgi b/diff.cgi index c6176b3..4409a13 100755 --- a/diff.cgi +++ b/diff.cgi @@ -17,5 +17,5 @@ if not sch.valid_fname(fname[0]) or not sch.valid_fname(fname[1]): sch.error("Fuck off!") sch.print_header("Differences between '%s' and '%s'" % (fname[0], fname[1])) -sch.run_proc('/usr/local/bin/syrep --diff "%s/%s" "%s/%s"' % (sch.repository_directory, fname[0], sch.repository_directory, fname[1])) +sch.run_proc('$s --diff "%s/%s" "%s/%s"' % (sch.syrep_binary, sch.repository_directory, fname[0], sch.repository_directory, fname[1])) sch.print_footer() diff --git a/info.cgi b/info.cgi index 6b65301..09fd1a9 100755 --- a/info.cgi +++ b/info.cgi @@ -14,5 +14,5 @@ if not sch.valid_fname(fname): sch.error("Fuck off!") sch.print_header("File Info for '%s'" % fname) -sch.run_proc('/usr/local/bin/syrep --info "%s/%s" ' % (sch.repository_directory, fname)) +sch.run_proc('%s --info "%s/%s" ' % (sch.syrep_binary, sch.repository_directory, fname)) sch.print_footer() diff --git a/sch.py b/sch.py index 395cf1e..0831abc 100644 --- a/sch.py +++ b/sch.py @@ -2,7 +2,7 @@ import cgi, sys, os repository_directory = "./rep" - +syrep_binary = "/usr/local/bin/syrep" header_done = 0 def print_header(s): -- cgit