update.py --self creates .gitignore; fixes #55
This commit is contained in:
parent
af43b2611a
commit
fc5b67769b
4
update.py
Executable file → Normal file
4
update.py
Executable file → Normal 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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user