Force removal when replacing old grammar modules

This commit is contained in:
Alhadis
2018-04-15 19:44:24 +10:00
parent 573b158250
commit 6efa18e071

View File

@@ -117,7 +117,7 @@ begin
if $repo_old
log "Deregistering: #{$repo_old}"
command('git', 'submodule', 'deinit', $repo_old)
command('git', 'submodule', 'deinit', '-f', $repo_old)
command('git', 'rm', '-rf', $repo_old)
command('script/grammar-compiler', 'update', '-f')
end
@@ -130,7 +130,8 @@ begin
if $repo_old
command('script/licensed')
else
command('script/licensed', '--module', $repo_new)
repo_abs = File.absolute_path($repo_new)
command('script/licensed', '--module', repo_abs)
end
log "Updating grammar documentation in vendor/README.md"