]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix error when generating symbols.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 11 Aug 2014 11:08:29 +0000 (11:08 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 11 Aug 2014 11:08:29 +0000 (11:08 +0000)
Somehow strip would return 1 when a directory is passed, so we have to
wrap it in a script to avoid the error.

atom.gyp
tools/posix/strip.sh [new file with mode: 0755]

index 1dbf2c41a5537e1ab4bc32abfaaafd071681d458..e02b70a683ff0eb8687a6606d142e1fd5cf9f07c 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
                 # Gyp action requires a output file, add a fake one here.
                 '<(PRODUCT_DIR)/dummy_file',
               ],
-              'action': [ 'strip', '<@(_inputs)' ],
+              'action': [
+                'tools/posix/strip.sh',
+                '<@(_inputs)',
+              ],
             },
           ],
         }],  # OS=="linux"
diff --git a/tools/posix/strip.sh b/tools/posix/strip.sh
new file mode 100755 (executable)
index 0000000..4f4f19a
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Ignore errors from strip.
+strip "$@"
+
+exit 0