OSDN Git Service

fix(tool/judgers.md): wrong usage in building lemon
authorCoelacanthus <coelacanthus@outlook.com>
Wed, 27 Jan 2021 02:43:12 +0000 (10:43 +0800)
committerCoelacanthus <coelacanthus@outlook.com>
Wed, 27 Jan 2021 02:43:12 +0000 (10:43 +0800)
1.  we can pass parameter into `./make` instead of using `sed` to modify the file,
    `-jn` can be passed although `-j n` can't.
2.  we can install the executable file into PATH instead of throwing it into home dir.

the result of git blame: https://github.com/OI-wiki/OI-wiki/commit/47acc594f2d94423d319a7b1ee83546ad29552a6

docs/tools/judgers.md

index 3ff5b23..9cc2bbc 100644 (file)
@@ -174,13 +174,11 @@ Ubuntu:
 ```bash
 sudo apt update
 sudo apt install qt5-default build-essential git -y
-git clone --depth=1 http://github.com/menci/lemon.git
+git clone --depth=1 https://github.com/Menci/Lemon.git
 cd lemon
-# 可以修改 make 文件来调整 make job 的线程数
-sed -i 's/make $/make -j 1 $/g' make
-./make
-cp Lemon ~
-cd ..
+# 可以修改 -j 后面的数字来调整 make job 的线程数
+./make -j2
+sudo install -Dm755 -t /usr/bin/ Lemon
 ```
 
 ### 数据格式