diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 1a93711..3766427 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -24,10 +24,10 @@ jobs: create_annotated_tag: true default_bump: patch dry_run: true - tag_prefix: cprnc- + tag_prefix: v - name: Update version.txt run: | - echo "${{ steps.name_tag.outputs.new_tag }}" > version.txt + echo "character(len=*), parameter :: version=\"${{ steps.name_tag.outputs.new_tag }}\"" > version.inc - name: Amend the last commit run: | git config --global user.email "gitbot@openrct2.org" @@ -43,4 +43,4 @@ jobs: create_annotated_tag: true default_bump: patch dry_run: false - tag_prefix: cprnc- + tag_prefix: v diff --git a/CMakeLists.txt b/CMakeLists.txt index 6535b49..1d5ba09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,9 +28,9 @@ if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU") endif() if (CMAKE_BUILD_TYPE STREQUAL "DEBUG") - set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g") + set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O0 -g") endif() - +set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -D_VERSION_=\"v1.0.0\"") #============================================================================== # DEFINE THE DEPENDENCIES diff --git a/cprnc.F90 b/cprnc.F90 index 735b02c..37f06cc 100644 --- a/cprnc.F90 +++ b/cprnc.F90 @@ -6,7 +6,7 @@ program piocprnc use f90_unix #endif implicit none - + include "version.inc" integer :: nargs, n character(len=1024) :: arg = '' ! cmd-line argument character(len=1024) :: fname(2) = ' ' ! input filenames @@ -37,7 +37,6 @@ program piocprnc ! Parse arg list ! - nargs = command_argument_count () dimoptioncnt=0 ignoretime=.false. @@ -47,6 +46,9 @@ program piocprnc call getarg (n, arg) n = n + 1 select case (arg) + case ('-V') + print *,"cprnc version:", version + stop case ('-v') verbose = .true. case ('-d')