Skip to content

Commit

Permalink
copr let the sed do its thing
Browse files Browse the repository at this point in the history
  • Loading branch information
janjurca committed Nov 29, 2023
1 parent 14565fd commit e250739
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .copr/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
CMAKELISTS_FILE := CMakeLists.txt

srpm:
dnf -y install cmake gcc-c++ make cxxopts-devel spdlog-devel git
mkdir -p build
make
cp build/.version .version
@VERSION_STRING=$$(cat build/.version); \
sed -i 's/\$${PROJECT_VERSION}/'$$VERSION_STRING'/g' $(CMAKELISTS_FILE); \
sed -i '/include(cmake\/DynamicVersion\.cmake)/d' $(CMAKELISTS_FILE); \
sed -i '/dynamic_version(PROJECT_PREFIX filestorm_)/d' $(CMAKELISTS_FILE)
make clean
mkdir -p build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
Expand Down

0 comments on commit e250739

Please sign in to comment.