Closed tizoc closed 5 years ago
Ok, BSD tar has a -s
flag that works the same, I can use that, just have to figure out how to do so without breaking it on linux:
-s pattern
Modify file or archive member names according to pattern. The pattern has the format /old/new/[gps] where old is a basic regular expression, new is
the replacement string of the matched part, and the optional trailing letters modify how the replacement is handled. If old is not matched, the pat-
tern is skipped. Within new, ~ is substituted with the match, 1 to 9 with the content of the corresponding captured group. The optional trailing g
specifies that matching should continue after the matched part and stopped on the first unmatched pattern. The optional trailing s specifies that
the pattern applies to the value of symbolic links. The optional trailing p specifies that after a successful substitution the original path name
and the new path name should be printed to standard error.
Just noticed this when running
make release
under OSX.