Prune the tree to the Release 2 scope
Delete everything that is not part of the Release 2 build closure defined by the story/release-2-cleanup README (46 targets, GROUP1/3/5/6): out-of-scope Lts modules (Viewer, OSG/BuildingViewer floor, Schusstafel, MSDL/SAAB import tools, ...), the include/ stub surplus, tests/, specs/, translations/, the migration report files, cmake/FindOpenSceneGraph.cmake, external/Schusstafel and the legacy new_docker_build.sh driver. In-scope files keep the XmlPatterns-branch versions (Qt XmlPatterns rework on QDomDocument, BZip2 nglcompression, first-build fixes). Tracked file count: 16140 -> 2166.
This commit is contained in:
1 parent
d327c66c46
commit
70d4b892a9
13974 files changed
-2776768
No files matched your search
@@ -1,47 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# $Revision$
|
||||
# $Date$
|
||||
# $Id$
|
||||
|
||||
import os
|
||||
import sys
|
||||
import datetime
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 3:
|
||||
print >> sys.stderr, "Usage: %s <directory with pri-files> <pro-file> <ignored targets>" % sys.argv[0]
|
||||
sys.exit(1)
|
||||
|
||||
path = sys.argv[1]
|
||||
out = sys.argv[2]
|
||||
# print "args: %s" % sys.argv[4:]
|
||||
if not os.path.isdir(path):
|
||||
print >> sys.stderr, "%s is not a directory" % path
|
||||
sys.exit(2)
|
||||
|
||||
ignored_tgts = []
|
||||
for ignored in sys.argv[4:]:
|
||||
ignored_tgts.append(ignored)
|
||||
|
||||
tsfiles = []
|
||||
dirList = os.listdir(path)
|
||||
for fname in dirList:
|
||||
if not fname.endswith(".pri"):
|
||||
continue
|
||||
if fname in ignored_tgts:
|
||||
continue
|
||||
tsfiles.append(fname)
|
||||
|
||||
with open(out, "w") as outfile:
|
||||
now = datetime.datetime.now()
|
||||
print >> outfile, '#'
|
||||
print >> outfile, '# generated by %s at %s' % ( sys.argv[0], now.strftime("%Y-%m-%d %H:%M:%S") )
|
||||
print >> outfile, '#'
|
||||
for tsfile in sorted(tsfiles):
|
||||
print >> outfile, 'include("%s")' % tsfile
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in new issue
Block a user