update.py --self creates .gitignore; fixes #55

This commit is contained in:
Radovan Bast 2015-08-10 17:35:46 +02:00
parent af43b2611a
commit fc5b67769b

4
update.py Executable file → Normal file
View File

@ -323,6 +323,10 @@ def main(argv):
src='%s/raw/master/example/autocmake.cfg' % AUTOCMAKE_GITHUB_URL,
dst='autocmake.cfg'
)
if not os.path.isfile('.gitignore'):
print('- creating .gitignore')
with open('.gitignore'), 'w') as f:
f.write('*.pyc\n')
print('- fetching lib/config.py')
fetch_url(
src='%s/raw/master/lib/config.py' % AUTOCMAKE_GITHUB_URL,