Skip to content

Commit

Permalink
_pkg.sh: convert Unix EOLs to CRLF to make Notepad happy
Browse files Browse the repository at this point in the history
- Restore CRLF in README.txt, COPYING.txt, etc.

This reverts commit be6bfb2. Notepad in recent systems can properly
process LF-only lines but we're releasing a product that can run on
legacy systems where that may not be true.

Fixes curl#42
Closes #xxxx
  • Loading branch information
jay committed Jan 11, 2023
1 parent 0f445b1 commit 5ce26c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ _cdo="$(pwd)"

if [ "${_NAM}" != "${_UNIPKG}" ]; then

find "${_DST}" \( -name '*.txt' -o -name '*.md' -o -name '*.rst' \) -exec unix2dos --quiet --keepdate '{}' +
find "${_DST}" -depth -type d -exec touch -c -r "$1" '{}' +
chmod -R a+rw-s,go-w "${_DST}"
# NOTE: Not effective on MSYS2:
Expand Down

0 comments on commit 5ce26c9

Please sign in to comment.