summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 0381a2f..028ff6e 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -2694,6 +2694,36 @@
},
'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': [
+ 'app/resources/manpage.1.in',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(filename).1',
+ ],
+ 'action': [
+ 'sh', '-c',
+ 'sed -e "s/@@NAME@@/<(name)/" -e "s/@@FILENAME@@/<(filename)/" app/resources/manpage.1.in > <@(_outputs)',
+ ],
+ 'message': 'Generating manpage'
+ },
+ ],
+
'conditions': [
# All Chrome builds have breakpad symbols, but only process the
# symbols from official builds.