Transform TAR Archived File Names

Prepend mypackage-0.1 to each archived file and compress the archive using bzip2 in one round:
tar --xform 's,^,mypackage-0.1/,' -cjf mypackage-0.1.tar.bz2 bin/ conf/ doc/ log/ Makefile

No comments:

Post a Comment