aboutsummaryrefslogtreecommitdiff
path: root/www/bricolage/files/patch-bin::bric_pgimport
blob: 38cf660e5ee0af866e4ca8d8dee555060ec031ef (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
*** bin/bric_pgimport.orig	Tue Jun  8 22:22:34 2004
--- bin/bric_pgimport	Wed Aug 18 18:00:40 2004
***************
*** 35,41 ****
  
  The directory with the Subversion SQL files. Defaults to lib subdirectory of
  BRICOLAGE_ROOT environment variable, which itself defaults to
! F</usr/local/bricolage>.
  
  =item -u
  
--- 35,41 ----
  
  The directory with the Subversion SQL files. Defaults to lib subdirectory of
  BRICOLAGE_ROOT environment variable, which itself defaults to
! F<%%SQLDIR%%>.
  
  =item -u
  
***************
*** 189,198 ****
  
      if ($opt_w) {
          # Add on the location of the SQL.
!         $opt_w = catdir($opt_w, 'sql', DBD);
      } else {
! 	$ENV{BRICOLAGE_ROOT} ||= '/usr/local/bricolage';
! 	$opt_w = catdir($ENV{BRICOLAGE_ROOT}, 'sql', DBD);
      }
  
      # Print a usage message unless all required args are included or if -h has
--- 189,198 ----
  
      if ($opt_w) {
          # Add on the location of the SQL.
!         $opt_w = catdir($opt_w);
      } else {
! 	$ENV{BRICOLAGE_ROOT} ||= '%%SQLDIR%%';
! 	$opt_w = catdir($ENV{BRICOLAGE_ROOT});
      }
  
      # Print a usage message unless all required args are included or if -h has
***************
*** 252,258 ****
       This should work if psql is in your path.
    -w The directory with the Subversion SQL files. Defaults to lib subdirectory
       of BRICOLAGE_ROOT environment variable, which itself defaults to
!      /usr/local/bricolage.
    -u Database user login. Defaults to PGUSER environment variable.
    -p Database user password. Defaults to PGPASSWORD environment variable.
    -d Database name. Defaults to PGDATABASE environment variable.
--- 252,258 ----
       This should work if psql is in your path.
    -w The directory with the Subversion SQL files. Defaults to lib subdirectory
       of BRICOLAGE_ROOT environment variable, which itself defaults to
!      %%SQLDIR%%.
    -u Database user login. Defaults to PGUSER environment variable.
    -p Database user password. Defaults to PGPASSWORD environment variable.
    -d Database name. Defaults to PGDATABASE environment variable.