Show
Ignore:
Timestamp:
05/11/08 17:04:41 (4 years ago)
Author:
dom
Message:

fix much tab/whitespace damage; no functional changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/bin/wiki-toolkit-rename-node

    r398 r431  
    1313            "oldname=s"      => \$oldname, 
    1414            "newname=s"      => \$newname, 
    15            ); 
     15          ); 
    1616 
    1717unless (defined($dbtype)) { 
     
    2828 
    2929unless (defined($oldname)) { 
    30         print "You must supply the old node name with the --oldname option.\n"; 
    31         print "Further help can be found by typing 'perldoc $0'\n"; 
    32         exit 1; 
     30    print "You must supply the old node name with the --oldname option.\n"; 
     31    print "Further help can be found by typing 'perldoc $0'\n"; 
     32    exit 1; 
    3333} 
    3434 
    3535unless (defined($newname)) { 
    36         print "You must supply the new node name with the --newname option.\n"; 
    37         print "Further help can be found by typing 'perldoc $0'\n"; 
    38         exit 1; 
     36    print "You must supply the new node name with the --newname option.\n"; 
     37    print "Further help can be found by typing 'perldoc $0'\n"; 
     38    exit 1; 
    3939} 
    4040 
     
    4545 
    4646my %setup_modules = ( postgres => "Wiki::Toolkit::Store::Pg", 
    47                       mysql    => "Wiki::Toolkit::Store::MySQL", 
    48                       sqlite  => "Wiki::Toolkit::Store::SQLite" 
     47                      mysql    => "Wiki::Toolkit::Store::MySQL", 
     48                      sqlite  => "Wiki::Toolkit::Store::SQLite" 
    4949); 
    5050 
     
    6767my $store; 
    6868my $args = "dbname=>'$dbname', dbuser=>'$dbuser'"; 
    69 if($dbpass) { $args .= ", dbpass=>'$dbpass'"; } 
    70 if($dbhost) { $args .= ", dbhost=>'$dbhost'"; } 
    71 if($dbport) { $args .= ", dbport=>'$dbport'"; } 
     69if($dbpass) { 
     70    $args .= ", dbpass=>'$dbpass'"; 
     71} 
     72if($dbhost) { 
     73    $args .= ", dbhost=>'$dbhost'"; 
     74} 
     75if($dbport) { 
     76    $args .= ", dbport=>'$dbport'"; 
     77} 
    7278eval "\$store = $class->new($args);"; 
    7379 
     
    8187print "Renamed '$oldname' to '$newname'\n"; 
    8288 
    83  
    8489=head1 NAME 
    8590 
     
    9297 
    9398  wiki-toolkit-rename-node --type postgres 
    94                    --name mywiki \ 
    95                    --user wiki  \ 
    96                    --pass wiki \ 
    97                    --host 'db.example.com' \ 
    98                    --port 1234 
    99                    --oldname MyOldNodeName \ 
    100                    --nemname FancyNewNodeName 
     99           --name mywiki \ 
     100           --user wiki  \ 
     101           --pass wiki \ 
     102           --host 'db.example.com' \ 
     103           --port 1234 
     104           --oldname MyOldNodeName \ 
     105           --nemname FancyNewNodeName 
    101106 
    102107=head1 DESCRIPTION