Skip to content

Commit

Permalink
make target to bump version
Browse files Browse the repository at this point in the history
print only new version from bump command

fix bump
  • Loading branch information
CamJN committed Jan 23, 2024
1 parent 714bf6e commit 2dcf8c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(OBJ_DIR) $(LIB_DIR) $(FAKE_ROOT) $(PKG_DIR):
mkdir -p $@

bump:
@ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(Version: +)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< getargv++.pc
@ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(VERSION=)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< Makefile-variables
@ruby -e 'path = STDIN.read.strip;File.write(path, File.read(path).sub(/^(PROJECT_NUMBER += +)([0-9]+)(?:(?:\.)([0-9]+)){1,}/){|s|"#{$$1}#{$$2}.#{$$3.to_i + 1}"})' <<< doxygen.conf
@env PKG_CONFIG_PATH=. pkg-config --modversion getargv++

docs: doxygen.conf $(SOURCES) $(HEADERS)
doxygen -q doxygen.conf

Expand Down

0 comments on commit 2dcf8c5

Please sign in to comment.