Skip to content

Commit

Permalink
Merge pull request #61 from TimNN/tar-sort-default
Browse files Browse the repository at this point in the history
Remove intelligent tar sort logic
  • Loading branch information
alexcrichton committed May 5, 2017
2 parents e1425c1 + ad918bb commit 2e6417f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions make-tarballs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,8 @@ need_ok "couldn't delete old xz tarball"
# Make a tarball
cd "$CFG_WORK_DIR"

# Sort files by their suffix, to group files with the same name from
# different locations (likely identical) and files with the same
# extension (likely containing similar data).
find "$CFG_INPUT" \( -type d -empty \) -or \( -not -type d \) \
| rev | sort | rev | tar -cf "$CFG_OUTPUT.tar" -T -
tar -cf "$CFG_OUTPUT.tar" "$CFG_INPUT"

need_ok "failed to tar"

if command -v xz >/dev/null 2>&1
Expand Down

0 comments on commit 2e6417f

Please sign in to comment.