2007-03-07 14:28:51 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
from os import system
|
|
|
|
import sys
|
|
|
|
|
|
|
|
version = ""
|
|
|
|
prefix = "qf-win32"
|
|
|
|
dir = prefix
|
|
|
|
|
|
|
|
if len (sys.argv) >= 2:
|
|
|
|
version = "-" + sys.argv[1]
|
|
|
|
if len (sys.argv) >= 3:
|
|
|
|
prefix = sys.argv[2]
|
|
|
|
if len (sys.argv) >= 4:
|
|
|
|
dir = sys.argv[3]
|
|
|
|
|
|
|
|
if dir and dir[-1] != '/':
|
|
|
|
dir += '/'
|
|
|
|
|
|
|
|
server = [
|
|
|
|
dir,
|
|
|
|
dir + "bin",
|
|
|
|
dir + "bin/hw-master.exe",
|
|
|
|
dir + "bin/nq-server.exe",
|
|
|
|
dir + "bin/qw-master.exe",
|
|
|
|
dir + "bin/qw-server.exe",
|
2010-12-24 01:41:09 +00:00
|
|
|
dir + "bin/qtv.exe",
|
2007-03-07 14:28:51 +00:00
|
|
|
]
|
|
|
|
|
2012-06-29 02:15:11 +00:00
|
|
|
#client_wgl = [
|
|
|
|
# dir,
|
|
|
|
# dir + "bin",
|
|
|
|
# dir + "bin/nq-wgl.exe",
|
|
|
|
# dir + "bin/qw-client-wgl.exe",
|
|
|
|
# dir + "QF",
|
|
|
|
# dir + "QF/menu.dat.gz",
|
|
|
|
# dir + "QF/menu.plist",
|
|
|
|
#]
|
2012-02-08 12:50:16 +00:00
|
|
|
|
2007-03-07 14:28:51 +00:00
|
|
|
client_sdl = [
|
|
|
|
dir,
|
|
|
|
dir + "bin",
|
|
|
|
dir + "bin/nq-sdl.exe",
|
|
|
|
dir + "bin/qw-client-sdl.exe",
|
2011-09-11 08:13:20 +00:00
|
|
|
dir + "QF",
|
|
|
|
dir + "QF/menu.dat.gz",
|
|
|
|
dir + "QF/menu.plist",
|
2007-03-07 14:28:51 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
tools = [
|
|
|
|
dir,
|
|
|
|
dir + "bin",
|
|
|
|
dir + "bin/bsp2img.exe",
|
|
|
|
dir + "bin/pak.exe",
|
|
|
|
dir + "bin/qfbsp.exe",
|
|
|
|
dir + "bin/qflight.exe",
|
|
|
|
dir + "bin/qfmodelgen.exe",
|
|
|
|
dir + "bin/qfvis.exe",
|
|
|
|
dir + "bin/qfwavinfo.exe",
|
|
|
|
dir + "bin/wad.exe",
|
|
|
|
dir + "bin/zpak",
|
|
|
|
]
|
|
|
|
|
2010-12-24 01:41:09 +00:00
|
|
|
qfcc = [
|
|
|
|
dir,
|
|
|
|
dir + "bin",
|
|
|
|
dir + "bin/qfcc.exe",
|
2011-12-25 07:23:02 +00:00
|
|
|
dir + "bin/qfprogs.exe",
|
2010-12-24 01:41:09 +00:00
|
|
|
dir + "bin/qfpreqcc",
|
|
|
|
dir + "qfcc.1",
|
2012-06-29 02:15:11 +00:00
|
|
|
dir + "pkgconfig/qfcc.pc",
|
2010-12-24 01:41:09 +00:00
|
|
|
]
|
|
|
|
qfcc_r = [
|
2012-06-29 02:15:11 +00:00
|
|
|
dir + "share/qfcc",
|
2010-12-24 01:41:09 +00:00
|
|
|
]
|
|
|
|
|
2007-03-07 14:28:51 +00:00
|
|
|
devel = [
|
2010-12-24 01:41:09 +00:00
|
|
|
dir,
|
2012-06-29 02:15:11 +00:00
|
|
|
dir + "pkgconfig/quakeforge.pc",
|
2010-12-24 01:41:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
devel_r = [
|
2007-03-07 14:28:51 +00:00
|
|
|
dir + "include",
|
|
|
|
dir + "lib",
|
|
|
|
]
|
|
|
|
|
2012-07-13 08:03:11 +00:00
|
|
|
io_mesh_qfmdl = [
|
|
|
|
dir,
|
|
|
|
]
|
|
|
|
|
|
|
|
io_mesh_qfmdl_r = [
|
|
|
|
dir + "io_mesh_qfmdl",
|
|
|
|
]
|
|
|
|
|
2010-12-24 01:41:09 +00:00
|
|
|
packages = [
|
|
|
|
(prefix + "-" + "server", server),
|
2012-06-29 02:15:11 +00:00
|
|
|
#(prefix + "-" + "client-wgl", client_wgl),
|
2010-12-24 01:54:16 +00:00
|
|
|
(prefix + "-" + "client-sdl", client_sdl),
|
2010-12-24 01:41:09 +00:00
|
|
|
(prefix + "-" + "tools", tools),
|
|
|
|
(prefix + "-" + "devel", devel),
|
|
|
|
(prefix + "-" + "devel", devel_r, "-r"),
|
|
|
|
("qfcc", qfcc),
|
|
|
|
("qfcc", qfcc_r, "-r"),
|
2012-07-13 08:03:11 +00:00
|
|
|
("io_mesh_qfmdl", io_mesh_qfmdl),
|
|
|
|
("io_mesh_qfmdl", io_mesh_qfmdl_r, "-r"),
|
2010-12-24 01:41:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
for p in packages:
|
|
|
|
opt = ""
|
|
|
|
if len (p) >= 3:
|
2010-12-24 01:54:16 +00:00
|
|
|
opt = p[2] + " "
|
2010-12-24 01:41:09 +00:00
|
|
|
cmd = "zip -9 " + opt + p[0] + version + ".zip " + " ".join (p[1])
|
|
|
|
print cmd
|
|
|
|
system (cmd)
|