Skip to content

Commit

Permalink
update Makefile so e.g. "TAG=6.0.7 make release" works correctly again (
Browse files Browse the repository at this point in the history
  • Loading branch information
fduncanh authored Jul 30, 2022
1 parent f84c4de commit 23a3e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5.1)
cmake_policy(SET CMP0069 NEW)

project(llhttp VERSION 6.0.5)
project(llhttp VERSION _TAG_)
include(GNUInstallDirs)

set(CMAKE_C_STANDARD 99)
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ release: generate
cp -rf src/llhttp.gyp release/
cp -rf src/common.gypi release/
cp -rf CMakeLists.txt release/
sed -i s/_TAG_/$(TAG)/ release/CMakeLists.txt
cp -rf libllhttp.pc.in release/
cp -rf README.md release/
cp -rf LICENSE-MIT release/
Expand All @@ -60,7 +61,7 @@ postversion: release
git checkout release --
cp -rf release/* ./
rm -rf release
git add include src *.gyp *.gypi CMakeLists.txt README.md LICENSE-MIT
git add include src *.gyp *.gypi CMakeLists.txt README.md LICENSE-MIT libllhttp.pc.in
git commit -a -m "release: $(TAG)"
git tag "release/v$(TAG)"
git push && git push --tags
Expand Down

0 comments on commit 23a3e22

Please sign in to comment.