一键生成项目脚本

#!/bin/bash

mkdir -p include lib src bin doc etc 3rd/include 3rd/lib dist
touch README.md BUILD.md RELEASE.md Makefile .gitignore
git init

# personal
git submodule add https://github.com/ithewei/hw.git src/hw
cp src/hw/.gitignore .
cp src/hw/Makefile .
cp -r src/hw/etc/* etc
cp src/hw/main.cpp.tmpl src/main.cpp

make
bin/test -h
发布了127 篇原创文章 · 获赞 135 · 访问量 26万+

猜你喜欢

转载自blog.csdn.net/GG_SiMiDa/article/details/89253506