From fd77b1806c114aa10d45734326f2ec4e443bb1d3 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 19 Feb 2021 18:06:18 -0500 Subject: make changelog & echo version tag --- makefile | 11 +++++++++++ org/spine_build_scaffold.org | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/makefile b/makefile index 7272559..3d8816c 100644 --- a/makefile +++ b/makefile @@ -85,6 +85,17 @@ markup_pod_samples: find data/pod -name pod.manifest | cut -f 1-3 -d / | sort markup_dir_samples: find data/sisudir/media/text -name *.ss[tm] | sort +version_tag: + echo "DRV=0.11.2; git tag -f doc-reform_v$$\{DRV} -m\"doc-reform $$\{DRV}\" HEAD" && \ + echo "git tag -f doc-reform_v0.11.2 -m\"doc-reform spine-0.11.2\" HEAD" +changelog: + git log --pretty=format:'---%+s %+as %ae%+h%d%+b' --no-merges | sed "/^\\s*$$/d" | sed "s/^---$$//" | sed "s/^\(\*\)\+/-/" | sed "s/ \+$$//" > CHANGELOG_ +gitZip: + git archive -v --format=tar --prefix=`echo spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)`/ HEAD | gzip > ../spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz && \ + echo "to unzip: tar -xzf spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz" +gitArchive: + git archive -v --format=tar --prefix=spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)/ HEAD | gzip > ../spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz && \ + echo "to unzip: tar -xzf spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz" dub_upgrade: $(DUB) upgrade default: ldc diff --git a/org/spine_build_scaffold.org b/org/spine_build_scaffold.org index ceae708..926d29a 100644 --- a/org/spine_build_scaffold.org +++ b/org/spine_build_scaffold.org @@ -84,6 +84,9 @@ <> <> <> +<> +<> +<> <> <> <> @@ -267,6 +270,18 @@ markup_dir_samples: find data/sisudir/media/text -name *.ss[tm] | sort #+END_SRC +** make archive + +#+NAME: make_project_zip_archive +#+BEGIN_SRC makefile +gitZip: + git archive -v --format=tar --prefix=`echo spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)`/ HEAD | gzip > ../spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz && \ + echo "to unzip: tar -xzf spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz" +gitArchive: + git archive -v --format=tar --prefix=spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)/ HEAD | gzip > ../spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz && \ + echo "to unzip: tar -xzf spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT).tar.gz" +#+END_SRC + ** _make_ commands [+2] :make:commands: - build commands @@ -284,6 +299,23 @@ markup_dir_samples: - git snapshot - gitsnapshot +*** version tag, stamp + +#+NAME: make_version_tag +#+BEGIN_SRC makefile +version_tag: + echo "DRV=<>; git tag -f doc-reform_v$$\{DRV} -m\"doc-reform $$\{DRV}\" HEAD" && \ + echo "git tag -f doc-reform_v<> -m\"doc-reform spine-<>\" HEAD" +#+END_SRC + +*** changelog + +#+NAME: make_changelog +#+BEGIN_SRC makefile +changelog: + git log --pretty=format:'---%+s %+as %ae%+h%d%+b' --no-merges | sed "/^\\s*$$/d" | sed "s/^---$$//" | sed "s/^\(\*\)\+/-/" | sed "s/ \+$$//" > CHANGELOG_ +#+END_SRC + *** build commands [+1] :build:compile: **** _dub_ build rebuild :dub: ***** all compiler builds :all:dmd:gdc:ldc: -- cgit v1.2.3