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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user