浏览代码

Rewrite instances of "pythonX.X", "pyX.X", etc in tarball listings

This leads to significantly smaller diffs in instances like major distro releases where the Python version moves from something like 3.9 to 3.10 (and a large portion of the diff is then just directory renames as a result).
Tianon Gravi 3 年之前
父节点
当前提交
a3d5c1e9bb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      diff-pr.sh

+ 2 - 0
diff-pr.sh

@@ -236,6 +236,8 @@ copy-tar() {
 								tar -tf "$dstG" \
 								tar -tf "$dstG" \
 									| grep -vE "$uninterestingTarballGrep" \
 									| grep -vE "$uninterestingTarballGrep" \
 									| sed -e 's!^[.]/!!' \
 									| sed -e 's!^[.]/!!' \
+										-r \
+										-e 's!([/.-]|^)((lib)?(c?python|py)-?)[0-9]+([.][0-9]+)?([/.-]|$)!\1\2XXX\6!g' \
 									| sort \
 									| sort \
 									> "$dstG  'tar -t'"
 									> "$dstG  'tar -t'"
 							fi
 							fi