michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: import sys michael@0: import os michael@0: from mozpack.packager.unpack import unpack michael@0: import buildconfig michael@0: michael@0: michael@0: def main(): michael@0: if len(sys.argv) != 2: michael@0: print >>sys.stderr, "Usage: %s directory" % \ michael@0: os.path.basename(sys.argv[0]) michael@0: sys.exit(1) michael@0: michael@0: buildconfig.substs['USE_ELF_HACK'] = False michael@0: buildconfig.substs['PKG_SKIP_STRIP'] = True michael@0: unpack(sys.argv[1]) michael@0: michael@0: if __name__ == "__main__": michael@0: main()