diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/resources/manpage.1.in | 61 | ||||
-rw-r--r-- | chrome/chrome.gyp | 34 | ||||
-rwxr-xr-x | chrome/tools/build/linux/sed.sh | 11 |
3 files changed, 106 insertions, 0 deletions
diff --git a/chrome/app/resources/manpage.1.in b/chrome/app/resources/manpage.1.in new file mode 100644 index 0000000..36a2be8 --- /dev/null +++ b/chrome/app/resources/manpage.1.in @@ -0,0 +1,61 @@ +." This file is processed by chrome.gyp to generate manpages in the +." build diretory. +.TH @@FILENAME@@ 1 "" "" "USER COMMANDS" + +.SH NAME +@@FILENAME@@ \- the web browser from Google + +.SH SYNOPSIS +.B @@FILENAME@@ +[\fIOPTION\fR] [\fIPATH\fR|\fIURL\fR] + +.SH DESCRIPTION +See the Google Chrome help center for help on using the browser. +.IP +http://www.google.com/support/chrome/ +.PP +This manpage only describes invocation, environment, and arguments. + +.SH OPTIONS +.TP +\fB\-\-user\-data\-dir\fR=\fIDIR\fR +Specifies the directory that user data (your "profile") is kept in. +Defaults to +.IR ~/.config/@@FILENAME@@/Default . +Separate instances of @@NAME@@ must use separate user data directories; +repeated invocations of @@FILENAME@@ will reuse an existing process for +a given user data directory. + +.TP +\fB\-\-app\fR=\fIURL\fR +Runs +.I URL +in "app mode": with no browser toolbars. + +.PP +As a GTK+ app, @@NAME@@ also obeys GTK+ command-line flags, such +as +.BR \-\-display . +See +<http://library.gnome.org/devel/gtk/stable/gtk-running.html> +and +<http://library.gnome.org/devel/gtk/stable/gtk-x11.html> . + +.SH ENVIRONMENT +@@NAME@@ obeys the +.B http_proxy +environment variable for setting the proxy. This overrides any Gnome +proxy setting. + +TODO(evanm): doc all the proxy-related environment settings. + +.SH BUGS +Bug tracker: +.IP +http://code.google.com/p/chromium/issues/list +.PP +Be sure to do your search within "All Issues" before reporting bugs, +and be sure to pick the "Defect on Linux" template when filing a new one. + +.SH AUTHOR +The Chromium team \- <http://www.chromium.org> diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 8c930c4..4448e28 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -2706,6 +2706,40 @@ }, 'conditions': [ ['OS=="linux"', { + 'actions': [ + { + 'action_name': 'manpage', + 'conditions': [ + [ 'branding == "Chrome"', { + 'variables': { + 'name': 'Google Chrome', + 'filename': 'google-chrome', + }, + }, { # else branding!="Chrome" + 'variables': { + 'name': 'Chromium', + 'filename': 'chromium-browser', + }, + }], + ], + 'inputs': [ + 'tools/build/linux/sed.sh', + 'app/resources/manpage.1.in', + ], + 'outputs': [ + '<(PRODUCT_DIR)/<(filename).1', + ], + 'action': [ + 'tools/build/linux/sed.sh', + 'app/resources/manpage.1.in', + '<@(_outputs)', + '-e', 's/@@NAME@@/<(name)/', + '-e', 's/@@FILENAME@@/<(filename)/', + ], + 'message': 'Generating manpage' + }, + ], + 'conditions': [ # All Chrome builds have breakpad symbols, but only process the # symbols from official builds. diff --git a/chrome/tools/build/linux/sed.sh b/chrome/tools/build/linux/sed.sh new file mode 100755 index 0000000..9284a28 --- /dev/null +++ b/chrome/tools/build/linux/sed.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Does the equivalent of +# sed -e A -e B infile > outfile +# in a world where doing it from gyp eats the redirection. + +infile="$1" +outfile="$2" +shift 2 + +sed "$@" "$infile" > "$outfile" |