From 13309379f94a8085cce13edbc8e873bec9aeac2b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 24 Sep 2013 10:07:22 -0400 Subject: [PATCH] add a --fullclean option to fix errors (from Doxin) --- SConscript | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SConscript b/SConscript index a69b981d2..f1924a3e2 100755 --- a/SConscript +++ b/SConscript @@ -88,6 +88,8 @@ AddOption('--snapshot-id',dest="snapshot-id",default=False,help="Snapshot build AddOption('--stable',dest="stable",default=True,help="Non snapshot build") AddOption('--aao', dest="everythingAtOnce", action='store_true', default=False, help="Compile the whole game without generating intermediate objects (very slow), enable this when using compilers like clang or mscc that don't support -fkeep-inline-functions") +AddOption('--fullclean',dest="justwork",action='store_true',default=False,help="for when nothing else works. Deletes all sconscript temporary files.") + # using one of these commandline options is compulsory AddOption('--win',dest="win",action='store_true',default=False,help="Windows platform target.") @@ -101,6 +103,18 @@ AddOption('--rpi',dest="rpi",action='store_true',default=False,help="Raspbain pl # the gist of the compiling rules are defined here + +if(GetOption("justwork")): + import shutil + try: + shutil.rmtree("../.sconf_temp/") + except: + print "couldn't remove .sconf_temp" + try: + os.remove("../.sconsign.dblite") + except: + print "couldn't remove .sconsign.dblite" + # platform selection # ==================