Skip to content

Commit

Permalink
Remove .version file -- we use git tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Mar 19, 2018
1 parent 8da1ec9 commit 8ac84d7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .version

This file was deleted.

4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ elseif (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
set (NNG_PACKAGE_VERSION "${NNG_PACKAGE_VERSION}-dirty")
endif()

elseif (EXISTS ${PROJECT_SOURCE_DIR}/.version)
# If git is not available (e.g. when building from source package)
# we can extract the package version from .version file.
file (STRINGS .version NNG_PACKAGE_VERSION)
else ()
set (NNG_PACKAGE_VERSION "Unknown")
endif()
Expand Down
2 changes: 1 addition & 1 deletion docs/man/preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ man)
exit 2
esac

version=$(cat $(dirname $0)/../../.version)
version=PREVIEW
name=nng

generate_pdf() {
Expand Down

0 comments on commit 8ac84d7

Please sign in to comment.