def main( argv=None ):
	if not argv:
		argv = sys.argv
	try:
		if len( argv ) == 1:
			print "Usage: build.py [clean|all|<name>]"
		else:
			print (  time.asctime( time.localtime() ) ) % "# Built on %s\n"
			if argv[1] == "clean":
				clean()
			elif argv[1] == "all":
				for root, dirs, files in os.walk( "./src/egghunter/" ):
					for name in files:
						build( name[:-4] )
				for root, dirs, files in os.walk( "./src/migrate/" ):
					for name in files:
						build( name[:-4] )
				for root, dirs, files in os.walk( "./src/single/" ):
					for name in files:
						build( name[:-4] )
				for root, dirs, files in os.walk( "./src/stage/" ):
					for name in files:
						build( name[:-4] )
				for root, dirs, files in os.walk( "./src/stager/" ):
					for name in files:
						build( name[:-4] )
				for root, dirs, files in os.walk( "./src/kernel/" ):
					for name in files:
						build( name[:-4] )
			else:
				build( argv[1] )
	except Exception, e:
		print "[-] ", e
#=============================================================================#
dataset/ETHPy150Open secretsquirrel/the-backdoor-factory/asm/build.py/main/swapped operands of `%`