993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
|
bFound = 1;
}
zPath += i;
}
return bFound;
}
/*
** COMMAND: which*
**
** Usage: fossil which [-a] NAME ...
**
** For each NAME mentioned as an argument, print the first location on the
** on PATH of the executable with that name. Or, show all locations on PATH
** for each argument if the -a option is used.
**
** This command is a substitute for the unix "which" command, which is not
** always available, especially on Windows.
*/
void test_app_on_path(void){
int i;
int ePrint = 1;
if( find_option("all","a",0)!=0 ) ePrint = 2;
verify_all_options();
for(i=2; i<g.argc; i++){
if( fossil_app_on_path(g.argv[i], ePrint)==0 ){
fossil_print("NOT FOUND: %s\n", g.argv[i]);
}
}
}
/*
** Return the name of a command that will launch a web-browser.
*/
const char *fossil_web_browser(void){
const char *zBrowser = 0;
#if defined(_WIN32)
zBrowser = db_get("web-browser", "start \"\"");
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
|
bFound = 1;
}
zPath += i;
}
return bFound;
}
/*
** Return the name of a command that will launch a web-browser.
*/
const char *fossil_web_browser(void){
const char *zBrowser = 0;
#if defined(_WIN32)
zBrowser = db_get("web-browser", "start \"\"");
|