first commit
This commit is contained in:
commit
0fa7144084
8 changed files with 144 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
STUID = ysyx_22040000
|
||||
STUNAME = 张三
|
||||
|
||||
# DO NOT modify the following code!!!
|
||||
|
||||
GITFLAGS = -q --author='tracer-ysyx2204 <tracer@ysyx.org>' --no-verify --allow-empty
|
||||
|
||||
# prototype: git_commit(msg)
|
||||
define git_commit
|
||||
-@git add .. -A --ignore-errors
|
||||
-@while (test -e .git/index.lock); do sleep 0.1; done
|
||||
-@(echo "> $(1)" && echo $(STUID) $(STUNAME) && uname -a && uptime) | git commit -F - $(GITFLAGS)
|
||||
-@sync
|
||||
endef
|
||||
|
||||
_default:
|
||||
@echo "Please run 'make' under subprojects."
|
||||
|
||||
.PHONY: _default
|
Loading…
Add table
Add a link
Reference in a new issue