ruki 5 years ago
parent
commit
530cb9d7bd

+ 1 - 1
manual/builtin_modules.md

@@ -983,7 +983,7 @@ print(path.join(os.tmpdir(), "file.txt"))
 Equivalent to:
 
 ```lua
-print("$(tmpdir)/file.txt"))
+print("$(tmpdir)/file.txt")
 ```
 
 #### os.tmpfile

+ 8 - 3
mirror/manual/builtin_modules.html

@@ -817,7 +817,8 @@ $ xmake --version
 </ul>
 <p>The behavior is similar to the <code>cp</code> command in the shell, supporting path wildcard matching (using lua pattern matching), support for multi-file copying, and built-in variable support.</p>
 <p>E.g:</p>
-<pre><code class="lang-lua">os.cp("$(scriptdir)/*.h", "$(projectdir)/src/test/**.h", "$(buildir)/inc")
+<pre><code class="lang-lua">os.cp("$(scriptdir)/*.h", "$(buildir)/inc")
+os.cp("$(projectdir)/src/test/**.h", "$(buildir)/inc")
 </code></pre>
 <p>The above code will: all the header files in the current <code>xmake.lua</code> directory, the header files in the project source test directory are all copied to the <code>$(buildir)</code> output directory.</p>
 <p>Among them <code>$(scriptdir)</code>, <code>$(projectdir)</code> These variables are built-in variables of xmake. For details, see the related documentation of <a href="#built-in variables">built-in variables</a>.</p>
@@ -826,6 +827,10 @@ $ xmake --version
 <pre><code class="lang-lua">-- Recursively copy the current directory to a temporary directory
 os.cp("$(curdir)/test/", "$(tmpdir)/test")
 </code></pre>
+<p>The copy at the top will expand and copy all files to the specified directory, and lose the source directory hierarchy. If you want to copy according to the directory structure that maintains it, you can set the rootdir parameter:</p>
+<pre><code class="lang-lua">os.cp ("src/**.h", "/tmp/", {rootdir=""src"})
+</code></pre>
+<p>The above script can press the root directory of <code>src</code> to copy all sub-files under src in the same directory structure.</p>
 <p><p class="tip"><br>Try to use the <code>os.cp</code> interface instead of <code>os.run("cp ..")</code>, which will ensure platform consistency and cross-platform build description.<br></p>
 
 </p>
@@ -835,7 +840,7 @@ os.cp("$(curdir)/test/", "$(tmpdir)/test")
 </ul>
 <p>Similar to the use of <a href="#oscp">os.cp</a>, it also supports multi-file move operations and pattern matching, for example:</p>
 <pre><code class="lang-lua">-- Move multiple files to a temporary directory
-os.mv("$(buildir)/test1","$(buildir)/test2", "$(tmpdir)")
+os.mv("$(buildir)/test1", "$(tmpdir)")
 
 -- File movement does not support bulk operations, which is file renaming
 os.mv("$(buildir)/libtest.a", "$(buildir)/libdemo.a")
@@ -1039,7 +1044,7 @@ local outdata, errdata = os.iorunv("echo", {"hello", "xmake!"}, {envs = {PATH=".
 <pre><code class="lang-lua">print(path.join(os.tmpdir(), "file.txt"))
 </code></pre>
 <p>Equivalent to:</p>
-<pre><code class="lang-lua">print("$(tmpdir)/file.txt"))
+<pre><code class="lang-lua">print("$(tmpdir)/file.txt")
 </code></pre>
 <h4 id="os-tmpfile">os.tmpfile</h4>
 <ul>

+ 9 - 4
mirror/zh-cn/manual/builtin_modules.html

@@ -816,7 +816,8 @@ $ xmake --version
 </ul>
 <p>行为和shell中的<code>cp</code>命令类似,支持路径通配符匹配(使用的是lua模式匹配),支持多文件复制,以及内置变量支持。</p>
 <p>例如:</p>
-<pre><code class="lang-lua">os.cp("$(scriptdir)/*.h", "$(projectdir)/src/test/**.h", "$(buildir)/inc")
+<pre><code class="lang-lua">os.cp("$(scriptdir)/*.h", "$(buildir)/inc")
+os.cp("$(projectdir)/src/test/**.h", "$(buildir)/inc")
 </code></pre>
 <p>上面的代码将:当前<code>xmake.lua</code>目录下的所有头文件、工程源码test目录下的头文件全部复制到<code>$(buildir)</code>输出目录中。</p>
 <p>其中<code>$(scriptdir)</code>, <code>$(projectdir)</code> 这些变量是xmake的内置变量,具体详情见:<a href="#内置变量">内置变量</a>的相关文档。</p>
@@ -825,6 +826,10 @@ $ xmake --version
 <pre><code class="lang-lua">-- 递归复制当前目录到临时目录
 os.cp("$(curdir)/test/", "$(tmpdir)/test")
 </code></pre>
+<p>上面的复制,会把所有文件全部展开复制到指定目录,丢失源目录层级,如果要按保持原有的目录结构复制,可以设置rootdir参数:</p>
+<pre><code class="lang-lua">os.cp("src/**.h", "/tmp/", {rootdir = "src"})
+</code></pre>
+<p>上面的脚本可以按<code>src</code>根目录,将src下的所有子文件保持目录结构复制过去。</p>
 <p><p class="tip"><br>尽量使用<code>os.cp</code>接口,而不是<code>os.run("cp ..")</code>,这样更能保证平台一致性,实现跨平台构建描述。<br></p>
 
 </p>
@@ -833,8 +838,8 @@ os.cp("$(curdir)/test/", "$(tmpdir)/test")
 <li>移动重命名文件或目录</li>
 </ul>
 <p>跟<a href="#oscp">os.cp</a>的使用类似,同样支持多文件移动操作和模式匹配,例如:</p>
-<pre><code class="lang-lua">-- 移动多个文件到临时目录
-os.mv("$(buildir)/test1", "$(buildir)/test2", "$(tmpdir)")
+<pre><code class="lang-lua">-- 移动文件到临时目录
+os.mv("$(buildir)/test1", "$(tmpdir)")
 
 -- 文件移动不支持批量操作,也就是文件重命名
 os.mv("$(buildir)/libtest.a", "$(buildir)/libdemo.a")
@@ -1047,7 +1052,7 @@ os.run("ls -l $(buildir)")
 <pre><code class="lang-lua">print(path.join(os.tmpdir(), "file.txt"))
 </code></pre>
 <p>等价于:</p>
-<pre><code class="lang-lua">print("$(tmpdir)/file.txt"))
+<pre><code class="lang-lua">print("$(tmpdir)/file.txt")
 </code></pre>
 <h4 id="os-tmpfile">os.tmpfile</h4>
 <ul>

+ 72 - 72
sitemap.xml

@@ -12,362 +12,362 @@
 
 <url>
   <loc>https://xmake.io/mirror/guide/project_examples.html</loc>
-  <lastmod>2020-07-13T23:32:21+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/other_features.html</loc>
-  <lastmod>2020-07-13T23:32:21+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/quickstart.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/faq.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/configuration.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/syntax_description.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/installation.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/plugin_development.html</loc>
-  <lastmod>2020-07-13T23:32:22+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/more_plugins.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/builtin_plugins.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/zh/plugins.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/zh/manual.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/plugins.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/manual.html</loc>
-  <lastmod>2020-07-13T23:32:23+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/awesome.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/changelog.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/contact.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/introduction.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/sponsor.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/index.html</loc>
-  <lastmod>2020-07-13T23:32:24+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/project_examples.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/other_features.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/quickstart.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/faq.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/configuration.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/syntax_description.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/installation.html</loc>
-  <lastmod>2020-07-13T23:32:25+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/plugin_development.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/more_plugins.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/builtin_plugins.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/awesome.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/changelog.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/contact.html</loc>
-  <lastmod>2020-07-13T23:32:26+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/introduction.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/sponsor.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/specification.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_variables.html</loc>
-  <lastmod>2020-07-13T23:32:27+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/conditions.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_rule.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/project_target.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_modules.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_toolchain.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/plugin_task.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_dependencies.html</loc>
-  <lastmod>2020-07-13T23:32:28+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/configuration_option.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/extension_modules.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/global_interfaces.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/builtin_themes.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/switch_theme.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package.html</loc>
-  <lastmod>2020-07-13T23:32:29+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/system_package.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/remote_package.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/specification.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_variables.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/conditions.html</loc>
-  <lastmod>2020-07-13T23:32:30+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_rule.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/project_target.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_modules.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_toolchain.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/plugin_task.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_dependencies.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/configuration_option.html</loc>
-  <lastmod>2020-07-13T23:32:31+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/extension_modules.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/global_interfaces.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/builtin_themes.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/switch_theme.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/system_package.html</loc>
-  <lastmod>2020-07-13T23:32:32+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/remote_package.html</loc>
-  <lastmod>2020-07-13T23:32:33+08:00</lastmod>
+  <lastmod>2020-07-17T23:01:40+08:00</lastmod>
 </url>
 
 </urlset>

+ 1 - 1
zh-cn/manual/builtin_modules.md

@@ -1004,7 +1004,7 @@ print(path.join(os.tmpdir(), "file.txt"))
 等价于:
 
 ```lua
-print("$(tmpdir)/file.txt"))
+print("$(tmpdir)/file.txt")
 ```
 
 #### os.tmpfile