Make viewer_manifest.py smarter.

Use newlines as delimiter to avoid strange characters and spaces breaking xargs.
This commit is contained in:
Lirusaito
2012-08-02 15:50:20 -04:00
parent abc1d185b7
commit 2c65da3397

View File

@@ -740,8 +740,8 @@ class LinuxManifest(ViewerManifest):
if self.args['buildtype'].lower() in ['release', 'releasesse2']:
print "* Going strip-crazy on the packaged binaries, since this is a RELEASE build"
# makes some small assumptions about our packaged dir structure
self.run_command("find %(d)r/bin %(d)r/lib* -type f | xargs --no-run-if-empty strip --strip-unneeded" % {'d': self.get_dst_prefix()} )
self.run_command("find %(d)r/bin %(d)r/lib* -type f -not -name \\*.so | xargs --no-run-if-empty strip -s" % {'d': self.get_dst_prefix()} )
self.run_command("find %(d)r/bin %(d)r/lib* -type f | xargs -d '\n' --no-run-if-empty strip --strip-unneeded" % {'d': self.get_dst_prefix()} )
self.run_command("find %(d)r/bin %(d)r/lib* -type f -not -name \\*.so | xargs -d '\n' --no-run-if-empty strip -s" % {'d': self.get_dst_prefix()} )
# Fix access permissions
self.run_command("""