-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
splitted the clean script into two separate scripts. One for removing…
… build artefacts and one for recursively resetting the git status.
- Loading branch information
Showing
5 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
#!/bin/sh | ||
set -euxo pipefail | ||
|
||
../MMT/deploy/run-file build.msl | ||
#java -Xmx8192m -cp "../MMT/deploy/mmt.jar" info.kwarc.mmt.api.frontend.Run :file build.msl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# this will remove your source code changes! | ||
if [ "$1" != "-y" ]; then | ||
while true; do | ||
read -p "This will delete all your uncommitted changes, do you want to continue? [y,n]: " yn | ||
case $yn in | ||
[Yy]* ) break;; | ||
[Nn]* ) exit 2;; | ||
* ) echo "Please answer yes or no.";; | ||
esac | ||
done | ||
fi | ||
|
||
git submodule foreach " | ||
git clean -fdx | ||
git reset --hard | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
#!/bin/sh | ||
git submodule foreach " | ||
git clean -fdx | ||
git reset --hard | ||
" | ||
|
||
echo | ||
echo "Removing all commited build artefacts:" | ||
# this only removes build artefacts and should not delete any source code changes (no gurantee) | ||
echo "Removing all (commited and uncommited) build artefacts:" | ||
find '(' -type d '(' -name "bin" -o -name "content" -o -name "errors" -o -name "narration" -o -name "relational" -o -name "logaux" ')' -o -type f -name "build.html" ')' -print -exec rm -r {} + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters