• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revision4f657344b4d4b71612e29ebe17cf9964f241ea56 (tree)
Time2009-01-04 19:54:05
Authorhenoheno <henoheno>
Commiterhenoheno

Log Message

Usage: PKWK_ROOT=path/to/pukiwiki php pkwk.php

Change Summary

Incremental Difference

--- a/bin/pkwk14.php
+++ b/bin/pkwk14.php
@@ -1,10 +1,10 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: pkwk14.php,v 1.1 2009/01/04 10:51:30 henoheno Exp $
3+// $Id: pkwk14.php,v 1.2 2009/01/04 10:54:05 henoheno Exp $
44 // Copyright (C) 2009 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
7-// PukiWiki administration script
7+// PukiWiki administration script for CLI environment
88
99 // Error reporting
1010 //error_reporting(0); // Nothing
@@ -23,7 +23,7 @@ define('PKWK_CLI_NAME', $argv[0]);
2323
2424 function usage()
2525 {
26- warn('Usage: ' . PKWK_CLI_NAME);
26+ warn('Usage: PKWK_ROOT=path/to/pukiwiki php ' . PKWK_CLI_NAME);
2727 exit(1);
2828 }
2929
@@ -115,8 +115,8 @@ default :
115115 //require(LIB_DIR . 'init.php');
116116
117117
118-# Load libraries --------------------------------------------
118+# Start -----------------------------------------------------
119119
120-exit(0);
120+usage();
121121
122122 ?>