iAvoid appending to preexisting files - pointtools - Simple point utilities to hold text presentations. Err bitreich.org 70 hgit clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ URL:git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ bitreich.org 70 1Log /scm/pointtools/log.gph bitreich.org 70 1Files /scm/pointtools/files.gph bitreich.org 70 1Refs /scm/pointtools/refs.gph bitreich.org 70 1Tags /scm/pointtools/tag bitreich.org 70 1README /scm/pointtools/file/README.md.gph bitreich.org 70 1LICENSE /scm/pointtools/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit fd83f17fab6afefa04c18b6e8f2938b916b9d008 /scm/pointtools/commit/fd83f17fab6afefa04c18b6e8f2938b916b9d008.gph bitreich.org 70 1parent 1d4661b2bad4cbf548b70d58ef36cd8eadae5978 /scm/pointtools/commit/1d4661b2bad4cbf548b70d58ef36cd8eadae5978.gph bitreich.org 70 hAuthor: Anders Damsgaard URL:mailto:anders@adamsgaard.dk bitreich.org 70 iDate: Sun, 26 Apr 2020 11:09:55 +0200 Err bitreich.org 70 i Err bitreich.org 70 iAvoid appending to preexisting files Err bitreich.org 70 i Err bitreich.org 70 iPreviously, multiple md2point calls required manually removing Err bitreich.org 70 ioutput text files between calls as content was always appended to Err bitreich.org 70 ithe output file. This is no longer the case with this commit, as Err bitreich.org 70 ioutput files are cleared on first write. Err bitreich.org 70 i Err bitreich.org 70 iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M bin/md2point | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/bin/md2point b/bin/md2point /scm/pointtools/file/bin/md2point.gph bitreich.org 70 i@@ -27,7 +27,7 @@ do Err bitreich.org 70 i fname="$(mkfilename "$snum" "$title")" Err bitreich.org 70 i snum=$((snum + 1)) Err bitreich.org 70 i printf "\n %s\n %s\n\n" \ Err bitreich.org 70 i- "$title" "$(mkunderline $titlelen "=")" >> $fname Err bitreich.org 70 i+ "$title" "$(mkunderline $titlelen "=")" > $fname Err bitreich.org 70 i ;; Err bitreich.org 70 i \#pause) Err bitreich.org 70 i fname="$(mkfilename "$snum" "$title")" Err bitreich.org 70 .