greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16948

Show
Ignore:
Timestamp:
2008-08-21 15:33:33 (5 months ago)
Author:
oranfry
Message:

make sure server.exe makes it into the root, installation.properties makes it into etc and added help screen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • release-kits/wirk2/ant-scripts/create-distribution.xml

    r16946 r16948  
    3434                        <fileset dir="${basedir}/gsdl/bin/windows" includes="**/*"/> 
    3535                </copy> 
     36                <copy todir="${basedir}/distributions/web" file="${basedir}/gsdl/server.exe"/> 
    3637        </target> 
    3738 
  • release-kits/wirk2/installer/build.xml

    r16931 r16948  
    8585                        pattern="\*\*GSDLHOME\*\*" 
    8686                        replacement="${installDir}"/> 
    87                                          
     87 
     88                <echo message="Creating installation properties file"/> 
     89                <echo file="${installDir}\etc\installation.properties">startmenu.path:@startmanu.path@</echo> 
     90 
    8891                <echo message="Finished"/> 
    8992                 
  • release-kits/wirk2/src/wirk2.cpp

    r16931 r16948  
    1717 
    1818} 
     19 
     20void show_help() { 
     21 
     22        cout << "Wirk2 - Windows Release Kit for Greenstone2" << endl; 
     23        cout << "Helps you to create releases from the Repository" << endl << endl; 
     24 
     25        cout << "usage: wirk2 [args]" << endl; 
     26        cout << "       -sim" << endl; 
     27        cout << "               simulation only, don't actually do anything" << endl << endl;  
     28 
     29        cout << "       -help" << endl; 
     30        cout << "               show this help screen" << endl; 
     31 
     32        cout << "       -from <target>" << endl; 
     33        cout << "               start execution from the target with the given target address" << endl << endl; 
     34 
     35        cout << "       -to <target>" << endl; 
     36        cout << "               stop execution just before the target with the given target address" << endl << endl; 
     37 
     38        cout << "       -descend <target>" << endl; 
     39        cout << "               execute only the target with the given address, including subtargets" << endl << endl; 
     40 
     41        cout << "       -cp" << endl; 
     42        cout << "               show the classpath being used by wirk2" << endl << endl; 
     43 
     44} 
     45 
    1946 
    2047int main(int argc, char** argv ) { 
     
    5279                a = argv[i]; 
    5380                         
    54                 if ( a.compare("-help") == 0 ) { 
    55                         //show_help(); 
     81                if ( a.compare("-help") == 0 || a.compare("--help") == 0 ) { 
     82                        show_help(); 
    5683                        return 0; 
    57                 } else if ( a.compare("-cp") == 0) { 
     84                } else if ( a.compare("-cp") == 0 || a.compare("--cp") == 0 ) { 
    5885                        cout << classpath; 
    5986                        return 0;