mirror of
https://github.com/SWG-Source/swg-main.git
synced 2026-01-16 20:04:18 -05:00
17 lines
464 B
Python
17 lines
464 B
Python
#!/usr/bin/env python
|
|
|
|
from os import path, makedirs
|
|
from subprocess import PIPE, Popen
|
|
|
|
inputfile = './dsrc/sku.0/sys.shared/compiled/game/misc/planet_crc_string_table.txt'
|
|
ifffile = './data/sku.0/sys.shared/compiled/game/misc/planet_crc_string_table.iff'
|
|
|
|
if not path.exists(path.dirname(ifffile)):
|
|
makedirs(path.dirname(ifffile))
|
|
|
|
crc_call = ['./tools/buildCrcStringTable.pl', ifffile, inputfile]
|
|
|
|
p = Popen(crc_call, stdin=PIPE, stdout=PIPE)
|
|
|
|
p.communicate()
|