1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Revert "core: use argument "-i" for sed command (don't create a temporary file)"

This reverts commit b2466aae29.

The option "-i" is not supported on FreeBSD.
This commit is contained in:
Sébastien Helleu
2014-08-03 13:49:11 +02:00
parent dbc30707aa
commit 6dcb1e7b10
+2 -1
View File
@@ -68,6 +68,7 @@ else
else
# git version not found in file => update file with this git version
echo "Updating file ${HEADERFILE} with git version: \"${GIT_VERSION}\""
sed -i "s/#define PACKAGE_VERSION_GIT \".*\"/#define PACKAGE_VERSION_GIT \"${GIT_VERSION}\"/" ${HEADERFILE}
sed "s/#define PACKAGE_VERSION_GIT \".*\"/#define PACKAGE_VERSION_GIT \"${GIT_VERSION}\"/" ${HEADERFILE} >${HEADERFILE}.tmp
mv -f ${HEADERFILE}.tmp ${HEADERFILE}
fi
fi