aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-18 23:41:31 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-18 23:42:31 -0500
commit165dce7a792cf59984346a992b567f889bcf92ff (patch)
tree80c660e89c488fb0f7a65ca3af3215345c65721a /src/Makefile
parent5c8712a222bfa06c0d5b5bf355d9c47781a053c7 (diff)
downloadunalf-165dce7a792cf59984346a992b567f889bcf92ff.tar.gz
Fix line endings and VERSION in windows .zip release.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 7ae77de..1b20c63 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -99,7 +99,8 @@ windows: crosswin html
rm -rf wintmp unalf-$(VERSION)-win64.zip
mkdir -p wintmp/{doc,examples}
cp unalf.exe alfsum.exe wintmp
- cd .. ; for i in *.txt doc/*.txt doc/Arcinfo examples/*.txt; do sed 's,\n,\r\n,' $$i > src/wintmp/$$i; done
+ cd .. ; for i in README.txt TODO.txt doc/*.txt doc/Arcinfo examples/*.txt; do perl -pe 's,\n,\r\n,;' $$i > src/wintmp/$$i; done
+ perl -p -e 's,\n,\r\n,;' -e 's,\@VERSION\@,$(VERSION),g;' ../README_Windows.txt > wintmp/README_Windows.txt
cp ../examples/*.alf wintmp/examples
cp alfsum.html unalf.html wintmp
cd wintmp ; zip -r ../../unalf-$(VERSION)-win64.zip *