File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22#
33set -e
44
5+ # Shorthand for digit class:
6+ d=" [[:digit:]]"
57# Determine the version and build timestamp
68VERSION=$( sed -n -e " s/^set(log4cxx_VER \" \(.*\)\" )/\1/p" < src/cmake/projectVersionDetails.cmake)
7- if ! echo " $VERSION " | grep -Pq ' ^\ d+\.\ d+\.\ d+$' ; then
9+ if ! echo " $VERSION " | grep -Eq " ^ $ d +\.$ d +\.$ d +$" ; then
810 echo Invalid version number: " $VERSION " >& 2
911 exit 1
1012fi
1113
1214OUTPUT_TIMESTAMP=$( sed -n -e " s/^set(log4cxx_OUTPUT_TIMESTAMP \" \(.*\)\" )/\1/p" < src/cmake/projectVersionDetails.cmake)
13- if ! echo " $OUTPUT_TIMESTAMP " | grep -Pq ' ^\ d{4}-\ d{2}-\ d{2}T\ d{2}:\ d{2}:\ d{2}Z$' ; then
15+ if ! echo " $OUTPUT_TIMESTAMP " | grep -Eq " ^ $ d {4}-$ d {2}-$ d {2}T$ d {2}:$ d {2}:$ d {2}Z$" ; then
1416 echo Invalid build timestamp: " $OUTPUT_TIMESTAMP " >& 2
1517 echo Run ' `' date -u +%Y-%m-%dT%H:%M:%SZ' `' to generate it
1618 exit 1
You can’t perform that action at this time.
0 commit comments