-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adds new genmonke script * updates readme
- Loading branch information
Showing
6 changed files
with
50 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
[ -z "$1" ] && echo "usage: ./genmonkefull <targetdir>" && echo "e.g.: ./genmonkefull extracted" && exit 1 | ||
|
||
cd $1 | ||
if [ $(git status --short | wc -l) = "0" ]; then | ||
echo "No changes in $1 found, no need to generate monke.patch" | ||
exit 1 | ||
fi | ||
git stash && | ||
git checkout javaonly && | ||
cd .. && | ||
./buildsource $1 && | ||
cd $1 && | ||
if [ $(git status --short | wc -l) = "0" ]; then | ||
echo "" | ||
echo "== No changes caused by sources, please run ./genmokeonly instead! ==" | ||
echo "" | ||
exit 1 | ||
git checkout master | ||
git stash pop --quiet | ||
exit 1 | ||
fi | ||
git add . && | ||
git commit -m "new sources" && | ||
git checkout master && | ||
git stash pop --quiet && | ||
cd .. && | ||
./genmonkeonly $1 |
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,12 @@ | ||
#!/bin/bash | ||
|
||
[ -z "$1" ] && echo "usage: ./genmonkeyonly <targetdir>" && echo "e.g.: ./genmonkeyonly extracted" && exit 1 | ||
|
||
cd $1 && | ||
if [ $(git status --short | wc -l) = "0" ]; then | ||
echo "No changes in $1 found, no need to generate monke.patch" | ||
exit 1 | ||
fi | ||
git checkout master && | ||
git diff --binary -U1 javaonly > ../monke.patch && | ||
echo "done" |
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