1 Star 0 Fork 0

李科宪/makefile-source

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uniapp-code-source-makefile 663 Bytes
一键复制 编辑 原始数据 按行查看 历史
李科宪 提交于 2023-07-20 13:20 +08:00 . add uniapp-code-source-makefile.
all: clean txt count
FILTER = \( \
-type d -name "unpackage" -o \
-type d -name ".idea" -o \
-type d -name "uni_modules" -o \
-type d -name ".hbuilderx" -o \
-type d -name "static" -o \
-type f -name "code.txt" -o \
-type f -name "manifest.json" -o \
-type f -name "package.json" -o \
-type f -name "package-lock.json" \
\) \
count:
find . ${FILTER} -prune -o -type f -print | xargs cat | grep -v '^$$' | wc -l | (cat && cat code.txt) > code_tmp.txt && mv code_tmp.txt code.txt;
txt:
find . ${FILTER} -prune -o -type f -print | xargs cat | grep -v '^$$' > code.txt ;
clean:
find . -type f -name "code.txt" -exec rm -f {} +
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/www.likexian.me/makefile-source.git
git@gitee.com:www.likexian.me/makefile-source.git
www.likexian.me
makefile-source
makefile-source
master

搜索帮助