-# all at once
-def createAndInstall(config, overwriteCheck = False):
- # generate debian files
- files = createDebianFiles(config)
- # check if a file is overwritten
- if overwriteCheck:
+###################################################################
+# if we are called directly as script
+if __name__ == "__main__":
+ try:
+ import imp
+ # get config
+ config = imp.load_source('config', 'auto-debuild.conf').__dict__
+ os.remove('auto-debuild.confc')
+ # generate debian files
+ if os.path.exists('debian'):
+ if raw_input("A debian folder already exists, to you want to remove it (y/N)? ").lower() != "y":
+ sys.exit(1)
+ shutil.rmtree('debian')
+ files = createDebianFiles(config)
+ # check if a file is overwritten