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 --- org/spine_build_scaffold.org | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'org') 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