Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
同じファイル群に対して同じバイナリのアーカイブを生成する
#!/bin/sh
ARCHIVE="$1"
TARGET="$2"
find "$TARGET" -exec touch -t 198001010000 '{}' +
find "$TARGET" -print0 | tr '\0' '\n' | LC_ALL=C sort | zip -@ -X "$ARCHIVE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment