{ "name": "dos2unix", "version": "7.5.7", "summary": "dos2unix, unix2dos, mac2unix, unix2mac: convert line breaks and UTF-16 text files", "category": "tool", "license": "BSD-2-Clause", "homepage": "https://waterlan.home.xs4all.nl/dos2unix.html", "source": { "url": "https://sourceforge.net/projects/dos2unix/files/dos2unix/7.5.7/dos2unix-7.5.7.tar.gz/download", "sha256": "669ee27120ae71589f638fe3a167d6ea54f8633f5ab1b282551bd7a7c9510dfa" }, "watch": {"kind": "index", "url": "https://sourceforge.net/projects/dos2unix/rss?path=/dos2unix", "regex": "dos2unix-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/dos2unix --version | first && t=$(mktemp -d) && printf 'one\\r\\ntwo\\r\\n' > \"$t/a\" && bin/dos2unix -q \"$t/a\" && [ \"$(od -An -c \"$t/a\" | tr -d ' \\n')\" = 'one\\ntwo\\n' ] && bin/unix2dos -q \"$t/a\" && [ \"$(od -An -c \"$t/a\" | tr -d ' \\n')\" = 'one\\r\\ntwo\\r\\n' ] && printf '\\377\\376h\\000i\\000\\r\\000\\n\\000' > \"$t/u\" && bin/dos2unix -q \"$t/u\" && [ \"$(od -An -c \"$t/u\" | tr -d ' \\n')\" = 'hi\\n' ] && bin/dos2unix -i \"$t/a\" | has '^ *2 *0 *0 *no_bom *text' && echo 'dos2unix: CRLF to LF and back, UTF-16 to UTF-8, the line count of -i'" }