From 9d57483c76120200cc15d9ed7a0ee1f3417e4af0 Mon Sep 17 00:00:00 2001 From: james <1943357252@qq.com> Date: Tue, 23 Jul 2024 18:38:43 +0800 Subject: [PATCH] =?UTF-8?q?note=E5=A2=9E=E5=8A=A0git=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Day1/note.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Day1/note.md diff --git a/Day1/note.md b/Day1/note.md new file mode 100644 index 0000000..d5cb6b2 --- /dev/null +++ b/Day1/note.md @@ -0,0 +1,38 @@ +# RSOC Day1 +## git +``` bash +git init +git add . +git commit -m "first commit" + +# 给仓库地址设置一个别名(将本地项目与GitHub上的关联) +git remote add origin https://github.com/*.git +# 查看配置的仓库 +git remote -v +# 删除别名 +git remote remove origin + +git push -u origin master +``` +## SConscript +加入这个文件可以使在当前文件夹里的也能被调用 +``` SConscript +from building import * +import os + +cwd = GetCurrentDir() +src = Glob('*.c') +CPPPATH = [cwd] + +if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): + src += ['arduino_main.cpp'] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +list = os.listdir(cwd) +for item in list: + if os.path.isfile(os.path.join(cwd, item, 'SConscript')): + group = group + SConscript(os.path.join(item, 'SConscript')) + +Return('group') +``` \ No newline at end of file