aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/spine_build_scaffold.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/spine_build_scaffold.org')
-rw-r--r--org/spine_build_scaffold.org32
1 files changed, 32 insertions, 0 deletions
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 @@
<<make_find_markup_samples_0_pod_and_dir>>
<<make_find_markup_samples_1_pod>>
<<make_find_markup_samples_2_dir>>
+<<make_version_tag>>
+<<make_changelog>>
+<<make_project_zip_archive>>
<<make_dub_upgrade>>
<<make_compile_0_compiler_default>>
<<make_compile_1_compiler_all>>
@@ -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=<<version_spine>>; git tag -f doc-reform_v$$\{DRV} -m\"doc-reform $$\{DRV}\" HEAD" && \
+ echo "git tag -f doc-reform_v<<version_spine>> -m\"doc-reform spine-<<version_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: