aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ratbox-services/files/patch-tools_dbupgrade.pl
blob: 8ada4c52e9a4f2fe6fb25afe9c51c5f4baac79c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- ./tools/dbupgrade.pl.orig   Fri Aug 24 13:01:39 2007
+++ ./tools/dbupgrade.pl    Fri Aug 24 13:38:23 2007
@@ -27,9 +27,9 @@
    exit;
 }
 
-unless(-r "../include/setup.h")
+unless(-r "%%PREFIX%%/include/setup.h")
 {
-   print("Unable to read ../include/setup.h, please run configure first\n");
+   print("Unable to read %%PREFIX%%/include/setup.h, please run configure first\n");
    exit();
 }
 
@@ -71,7 +71,7 @@
 }
 else
 {
-   %vals = &parse_includes("../include");
+   %vals = &parse_includes("%%PREFIX%%/include");
 }
 
 while(my ($key, $value) = each(%vals))