mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-21 15:49:09 +00:00
minimize.sh make file ordering deterministic
Do find | sort | cat instead of find -exec cat when building resources/openpgp.js. The order of files returned by find isn't deterministic, which could lead to spurious differences.
This commit is contained in:
@@ -11,7 +11,7 @@ _majorVersion=".1"
|
||||
:>"$_min"
|
||||
|
||||
echo "Concatenating..."
|
||||
find "$_src" -name "*.js" -exec cat "{}" >> "$_tmp" \;
|
||||
find "$_src" -name "*.js" | sort | xargs --delimiter='\n' cat > "$_tmp"
|
||||
sed "s/OpenPGP.js VERSION/OpenPGP.js v$_majorVersion.$(date +%Y%m%d)/g" "$_tmp" > "$_raw";
|
||||
rm "$_tmp";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user