Updated/fixed the build system, not worrect versions are publshed.

This update also contains all the chaniges from v0.1.11.

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-13 14:14:39 +03:00
parent c72756c693
commit 246d7b2f48
2 changed files with 23 additions and 8 deletions

View File

@ -45,6 +45,8 @@
.EXPORT_ALL_VARIABLES:
#.ONESHELL:
# NOTE: this makes things run consistently on different systems including
# things like Android...
SHELL := bash
@ -287,8 +289,6 @@ ctan-dist: dist
cp -f $(DIST_DIR)/$(DIST_NAME).zip $(DIST_DIR)/$(MODULE).zip
# XXX add checks for commit and push...
.PHONY: tag
tag:
@echo "Will create and publish git tag:"
@ -298,10 +298,25 @@ tag:
| tail -n 5 \
| sed 's/^/ /' \
| tac
@[ $$(git status --porcelain=v1 2> /dev/null | grep -v '??' | wc -l) = 0 ] \
|| echo -e "\nWARNING: There are uncommited changes!\n"
@echo "Note that this must be done after a commit and a push."
@read -p "(press any key to continue or ctrl-c to cancel)"
# # check if we need to bug the user about committing and/or pushing stuff...
@\
UNCOMITTED=$$(git status --porcelain=v1 2> /dev/null | grep -v '??' | wc -l) ;\
UNPUSHED=$$(git log origin..HEAD | wc -l) ;\
if ! [ $$UNCOMITTED = 0 ] ; then \
echo ;\
echo "WARNING: Uncommited changes found!" ;\
fi ;\
if ! [ $$UNPUSHED = 0 ] ; then \
[ $$UNCOMITTED = 0 ] \
&& echo ;\
echo "WARNING: Unpushed commits found!" ;\
fi ;\
if ! [ $$UNCOMITTED = 0 ] || ! [ $$UNPUSHED = 0 ] ; then \
echo ;\
echo "Note that this must be done after a commit and a push." ;\
echo "(press any key to continue or ctrl-c to cancel)" ;\
read ;\
fi ;\
git tag "v$(VERSION)"
git push origin "v$(VERSION)"

View File

@ -76,8 +76,8 @@
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
%%% code and the generated docs...
\edef\photobook@FILEVERSION{v0.1.11}
\edef\photobook@FILEDATE{2023-03-11}
\edef\photobook@FILEVERSION{v0.1.12}
\edef\photobook@FILEDATE{2023-03-13}
%% \documentclass{ltxdoc}