浏览代码

Make packaging easier & document

Jethro Beekman 8 年之前
父节点
当前提交
1a62a818c3
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 9 0
      README.md
  2. 1 1
      build-src.sh

+ 9 - 0
README.md

@@ -22,6 +22,15 @@ tree diff as the patch. The temporary git repository will be deleted. Before
 dropping into the shell, the script will show you nearby commits, you can try
 to apply `$PATCH_DIR/that_commit.patch` and see if it works for you.
 
+## Publishing
+
+```
+$ echo FULL_COMMIT_ID ...|GIT_DIR=/your/rust/dir/.git ./build-src.sh publish
+```
+
+Again, instead of echoing in the commit IDs, you might pipe in `rustc-commit-db
+list-valid`.
+
 ## Editing patches
 
 To edit all patches, again make a checkout of the rust source. Then, run:

+ 1 - 1
build-src.sh

@@ -67,5 +67,5 @@ done
 OLD_GIT_PERM=$(stat --printf=%a .git)
 trap "chmod $OLD_GIT_PERM .git; exit 1" SIGINT
 chmod 000 .git
-cargo package
+cargo ${1:-package}
 chmod $OLD_GIT_PERM .git