From 146eba198c4405de81fef4eb083cbce9f519ef22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 26 Mar 2015 16:18:16 +0100 Subject: reset.py remove Python implementation of reset remove. This is doing now makefile. This script wasn't working/finished anyway. --- scripts/reset.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 scripts/reset.py diff --git a/scripts/reset.py b/scripts/reset.py deleted file mode 100755 index 461bbda..0000000 --- a/scripts/reset.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/python3 -import os -import sys - -def rm_rf(d): - for path in (os.path.join(d,f) for f in os.listdir(d)): - if os.path.isdir(path): - rm_rf(path) - else: - os.unlink(path) - os.rmdir(d) - -# TODO repair, broken -def reset(): - rm_rf(conf.build_folder) - os.chdir(conf.linux_sources) - subprocess.call(['make','clean']) - os.rm('.config') # remove linux config file - - -################################################################################# - -if __name__ == '__main__': - reset() -- cgit v1.2.3