-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from seia-soto/rework-git-patch
- Loading branch information
Showing
11 changed files
with
201 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/workspace |
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,31 @@ | ||
help: | ||
@echo "use: $(MAKE) [clone-upstream]" | ||
@echo "" | ||
@echo " clone-upstream -> clone upstream(Jigsaw-Code/outline-server) into ./workspace/outline-server" | ||
@echo " apply-patches -> patch diff files into ./workspace/outline-server" | ||
@echo " create-patch -> create patch file from workspace TARGET=target_to_execute_diff" | ||
@echo " clean -> clean workspace directory" | ||
|
||
clone-upstream: | ||
mkdir -p ./workspace; | ||
@if [[ ! -d ./workspace/outline-server ]]; then \ | ||
git clone https://github.com/Jigsaw-Code/outline-server.git ./workspace/outline-server; \ | ||
else \ | ||
cd ./workspace/outline-server; \ | ||
git pull; \ | ||
fi; | ||
|
||
apply-patches: | ||
@cd ./workspace/outline-server; \ | ||
for FILE in ../../patches/*.patch; do \ | ||
[[ -e "$${FILE}" ]] || continue; \ | ||
echo "Applying $${FILE}"; \ | ||
git apply "$${FILE}"; \ | ||
done; | ||
|
||
create-patch: | ||
@cd ./workspace/outline-server; \ | ||
git diff $(TARGET) > ../../patches/_.patch; | ||
|
||
clean: | ||
rm -rf ./workspace/outline-server; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.