Skip to content

Commit

Permalink
shpp: Set version from git_revgen, remove separate revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaodan committed Aug 2, 2020
1 parent 03983d0 commit a80db86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
include ../rules.mk
# app specific stuff
TARGET = shpp
SHPP_VER = 1.9.1.1
GIT_REV = $(shell ../tools/git_revgen)

SHPP_VER = $(shell ../tools/git_revgen)
all: $(TARGET)

$(TARGET): ${TARGET:=.in.sh}
Expand Down
6 changes: 2 additions & 4 deletions src/shpp.in.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

# config vars ###
####################################
# version, rev config
SHPP_VER=@VER@
SHPP_REV=@GITREV@
#####################################
# base config

Expand Down Expand Up @@ -962,8 +960,8 @@ if [ ! $# = 0 ] ; then
while [ ! $# = 0 ] ; do
case $1 in
--help|-H|-h) print_help ; shift ;;
--revision) echo $SHPP_REV ; shift ;;
-V|--version) echo $SHPP_VER:$SHPP_REV ; shift ;;
--revision) echo $SHPP_VER ; shift ;;
-V|--version) echo $SHPP_VER ; shift ;;
--*|*)
optspec=o:O:Cc:D:I:M:v # b:dp #-: # short options
optspec_long=output:,option:,config:,color,,legacy,stdout,critical-warning,tmp:,stderr:,keep,debug::,verbose,errexit,\*=\* #,binpath:,desktop,prefix # long options
Expand Down

0 comments on commit a80db86

Please sign in to comment.