[PATCH] D101446: [llvm] Improve export.sh with help and snapshot

Konrad Wilhelm Kleine via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 15:24:47 PDT 2021


kwk updated this revision to Diff 343512.
kwk added a comment.

- Fixup renaming --snapshot to --git-ref


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101446/new/

https://reviews.llvm.org/D101446

Files:
  llvm/utils/release/export.sh


Index: llvm/utils/release/export.sh
===================================================================
--- llvm/utils/release/export.sh
+++ llvm/utils/release/export.sh
@@ -34,17 +34,18 @@
 Usage: $(basename $0) [-release|--release <major>.<minor>.<patch>]
                       [-rc|--rc <num>]
                       [-final|--final]
-                      [-snapshot|--snapshot <git-ref>] 
+                      [-git-ref|--git-ref <git-ref>] 
 
 Flags:
 
   -release  | --release <major>.<minor>.<patch>    The version number of the release
   -rc       | --rc <num>                           The release candidate number
   -final    | --final                              When provided, this option will disable the rc flag
-  -snapshot | --snapshot <git-ref>                 (optional) Use <git-ref> to determine the release and don't export the test-suite files
+  -git-ref  | --git-ref <git-ref>                  (optional) Use <git-ref> to determine the release and don't export the test-suite files
 
-These are the filenames (with <placeholders>) for the artifacts and hard
-links for each LLVM component created by this script: 
+The following list shows the filenames (with <placeholders>) for the artifacts and
+hard links for each LLVM component created by this script. Notice, the hard links
+are only created when you give --git-ref <git-ref>.
 
 $(\
       echo "$projects " \
@@ -56,7 +57,7 @@
 Additional files being generated:
 
   * llvm-project-<RELEASE><RC>.src.tar.xz    (the complete LLVM source project)
-  * test-suite-<RELEASE><RC>.src.tar.xz      (only when not using --snapshot)
+  * test-suite-<RELEASE><RC>.src.tar.xz      (only when not using --git-ref)
 
 To ease the creation of snapshot builds, we also provide these files
 
@@ -68,19 +69,13 @@
 
   * <RELEASE>  -> 13.0.0
   * <YYYYMMDD> -> 20210414
-  * <RC>       -> rc4        (will be empty when using --snapshot)
+  * <RC>       -> rc4        (will be empty when using --git-ref)
 EOF
 }
 
 export_sources() {
     tag="llvmorg-$release"
 
-    if [ "$rc" = "final" ]; then
-        rc=""
-    else
-        tag="$tag-$rc"
-    fi
-
     llvm_src_dir=$(readlink -f $(dirname "$(readlink -f "$0")")/../../..)
     [ -d $llvm_src_dir/.git ] || ( echo "No git repository at $llvm_src_dir" ; exit 1 )
 
@@ -151,7 +146,7 @@
         -final | --final )
             rc="final"
             ;;
-        -snapshot | --snapshot )
+        -git-ref | --git-ref )
             shift
             snapshot="$1"
             ;;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101446.343512.patch
Type: text/x-patch
Size: 2512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210506/c5421b6c/attachment.bin>


More information about the llvm-commits mailing list