Preserve RCS Id when updating an existing file.
This commit is contained in:
parent
035bb583df
commit
af2924c8df
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=11811
1 changed files with 7 additions and 1 deletions
|
@ -39,9 +39,15 @@ key=$(gpg --armor --export ${id})
|
|||
[ $? -eq 0 ] || exit 1
|
||||
|
||||
keyfile="${me}.key"
|
||||
if [ -f "${keyfile}" ]; then
|
||||
rcsid=$(grep '^<!-- \$Free.*-->$' "${keyfile}")
|
||||
fi
|
||||
if [ -z "${rcsid}" ]; then
|
||||
rcsid='<!-- $''FreeBSD''$ -->'
|
||||
fi
|
||||
echo "Generating ${keyfile}..."
|
||||
(
|
||||
echo '<!-- $FreeBSD$ -->'
|
||||
echo "${rcsid}"
|
||||
echo '<!--'
|
||||
echo "sh $0 ${me} ${id};"
|
||||
echo '-->'
|
||||
|
|
Loading…
Reference in a new issue