sys.stdout.write (
'Generate a patch to go to current version\n'
' -f, --from=FROM old is FROM\n'
- ' -h, --help print this help\n'
+ ' -h, --help print this help\n'
' -p, --package=DIR specify package\n'
' -r, --release diff against latest release\n'
' -t, --to=TO to version TO\n'
for d in dirs:
files = files + multiple_find (['*'], [d])
for f in files:
- os.remove (f)
+ try:
+ os.remove (f)
+ except:
+ sys.stderr.write ("can't remove: `" + f + "'\n'")
def dirname (v):
# urg, again?
# should do 'make distclean ?'
os.system ('rm -rf debian/out')
- os.system ('rm -f Makefile config.cache config.h config.hh config.log config.make config.status')
- os.system ('rm -f stepmake/Makefile stepmake/config.hh stepmake/config.log stepmake/config.make')
+ os.system ('rm -f GNUmakefile config.cache config.h config.hh config.log config.make config.status configure')
+ os.system ('rm -f stepmake/GNUmakefile stepmake/config.hh stepmake/config.log stepmake/config.status stepmake/config.make')
# ugh: symlinks
os.system ('rm -f stepmake/stepmake/stepmake')
if i == -1:
f.write (to_str + '\n')
else:
- i = i + len (version_tuple_to_str (flags.to_version)) + 1
+ i = i + len (version_tuple_to_str (flags.to_version))
state_vec = state_vec[:i]
f.write (state_vec)
+ f.write ('\n')
f.write ('++state\n')
f.close ()