Lines Matching refs:filename
36 def uncompress_unpack_commands(filename, verbose=False):
41 if (re.search("(\.bz2|\.tbz|\.tbz2)$", filename) != None):
43 elif (re.search("(\.gz|\.tgz)$", filename) != None):
45 elif (re.search("(\.Z)$", filename) != None):
47 elif (re.search("(\.7z)$", filename) != None):
49 elif (re.search("(\.xz)$", filename) != None):
51 elif (re.search("(\.zip)$", filename) != None):
53 elif (re.search("(\.gem)$", filename) != None):
59 if (re.search("(\.zip)$", filename) != None):
61 elif (re.search("(\.jar)$", filename) != None):
63 elif (re.search("(\.gem)$", filename) != None):
67 print "command: %s %s %s" % (uncompress, filename, unpack)
127 filename = ((args[0] == '/') and "%s" or "../%s") % args[0]
128 uncompress, unpack = uncompress_unpack_commands(filename)
133 print "cd %s ; %s %s%s" % (tempdir, uncompress, filename,
135 os.system("cd %s ; %s %s%s" % (tempdir, uncompress, filename, unpack))