[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
git-version-gen doc: writing to intermediate file
From: |
Basil L. Contovounesios |
Subject: |
git-version-gen doc: writing to intermediate file |
Date: |
Fri, 26 Jul 2024 15:24:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
The commentary in build-aux/git-version-gen illustrates how the files
.version and .tarball-version could be generated:
$(top_srcdir)/.version:
echo '$(VERSION)' > $@-t
mv $@-t $@
dist-hook:
echo '$(VERSION)' > $(distdir)/.tarball-version
I'm curious why one recipe writes a temporary file first, whereas the
other writes the target directly. Is the distinction meaningful?
Is this specific to Automake, or perhaps a more general
security/portability consideration?
I'd appreciate a pointer if this is already documented somewhere - my
searches came up dry.
Thanks,
--
Basil
- git-version-gen doc: writing to intermediate file,
Basil L. Contovounesios <=