documentation: Fix version number to only consider x.y.z format
Change-Id: I8fb45e92b9b9e38dfa9e1c10598174a6488ca3ea Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
2d52449807
commit
332d21d5dc
@ -14,6 +14,6 @@ case "$V" in
|
||||
;;
|
||||
|
||||
v*)
|
||||
echo ${V#v}
|
||||
echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/'
|
||||
;;
|
||||
esac
|
||||
|
@ -52,7 +52,7 @@ endif
|
||||
@-rm -rf $(LOCAL_ROOT)
|
||||
@echo "Checking out current $(VERSION)"
|
||||
@if ! $(SVN) checkout $(PUB_DIR) $(LOCAL_ROOT) 2>/dev/null ; then \
|
||||
p=$$(git describe HEAD^ | perl -lne 'print $$1 if /^v(\d+\.\d+\.\d+)/') && \
|
||||
p=$$(git describe HEAD^ | perl -lne 'print $$1 if /^v(\d+\.\d+(?:\.\d+)?)/') && \
|
||||
echo "Copying $$p to $(VERSION) ..." && \
|
||||
$(SVN) cp -m "Create $(VERSION) documentation" $(PUB_ROOT)/$$p $(PUB_DIR) && \
|
||||
$(SVN) checkout $(PUB_DIR) $(LOCAL_ROOT) ; \
|
||||
|
Loading…
Reference in New Issue
Block a user