https://help.mirrors.cqupt.edu.cn
There are inevitable reason to motify upstream(mirrorz) code, so a easy script override.sh
is developed.
The override.sh
script use override
dir as root path and calculate a relative path, then perform an action to path mirrorz-help/relative_path
file.
What action performed depends on the file's suffix under override
dir. There are 2 suffixes supported now
.patch
indicate this is a standardpatch
file (you can get this use cmd likediff
), so the action ispatch
this.patch
file to dst..all
indicate you wanna totally replace, so the action ismv
this.all
file to dst.
e.g.
An override file:
override/src/routers.json.patch
, then this command will be applied.patch override/src/routers.json.patch mirrorz-help/src/routers.json