Update Makefile
This commit is contained in:
@@ -94,13 +94,26 @@ updrefbib:
|
|||||||
|
|
||||||
|
|
||||||
updextensions:
|
updextensions:
|
||||||
@if [ ! -d "_extensions/drwater/dwms" ]; then \
|
@echo "检查网络连通性..."; \
|
||||||
mkdir -p _extensions && \
|
if ping -c 1 -W 1 drc.drwater.net > /dev/null 2>&1; then \
|
||||||
git clone https://git.drwater.net/quarto/drwater.git _extensions/drwater; \
|
echo "网络正常,更新extensions..."; \
|
||||||
|
if [ ! -d "_extensions/drwater/dwms" ]; then \
|
||||||
|
mkdir -p _extensions && \
|
||||||
|
git clone https://git.drwater.net/quarto/drwater.git _extensions/drwater; \
|
||||||
|
else \
|
||||||
|
cd _extensions/drwater && git pull && cd -; \
|
||||||
|
fi; \
|
||||||
|
echo "extensions更新完成."; \
|
||||||
else \
|
else \
|
||||||
cd _extensions/drwater && git pull && cd -; \
|
echo "网络不可用,跳过extensions更新."; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
customslidestheme:
|
||||||
|
@echo "获取模版scss,用于自定义revealjs theme..."; \
|
||||||
|
cp ~/manuscript/su2023temp/_extensions/drwater/dwinst/slides.scss ./
|
||||||
|
echo "已复制到./slides.scss"; \
|
||||||
|
echo "请指定reveal format中的theme参数。如:"; \
|
||||||
|
echo "format:\n revealjs:\n theme: slides.scss"
|
||||||
|
|
||||||
check_git_status:
|
check_git_status:
|
||||||
@uncommitted=$$(git status --porcelain); \
|
@uncommitted=$$(git status --porcelain); \
|
||||||
|
|||||||
Reference in New Issue
Block a user