mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Add sanity check to tools/import_srcdist.
tools/import_srcdist:
Check with "git status" that all files in the workspace have been
added, not ignored.
This commit is contained in:
committed by
Julien Fischer
parent
f0c8565553
commit
8a1c70e358
@@ -51,5 +51,10 @@ git checkout --detach "$initialcommit"
|
||||
git clean -fdxq .
|
||||
tar xf "$archive" --strip-components=1
|
||||
git add -f .
|
||||
if git status --porcelain --ignored | grep -v '^A '
|
||||
then
|
||||
echo "Some files were not added." >&2
|
||||
exit 1
|
||||
fi
|
||||
git commit -q -m "Imported $basename"
|
||||
git tag -a -m "Tag $version" "$tag"
|
||||
|
||||
Reference in New Issue
Block a user