aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-10 23:01:53 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-23 18:12:57 -0400
commitbadd5fe16d04828bdd6d38b9ec3f237555760e0c (patch)
tree0f3f1e8d1e147b06353fcbfe5336b6db96c48e21 /makefile
parentunicode, changes in use of symbols to represent things (diff)
nix configure
Diffstat (limited to 'makefile')
-rw-r--r--makefile28
1 files changed, 17 insertions, 11 deletions
diff --git a/makefile b/makefile
index 3cbdc77..ac0d8c9 100644
--- a/makefile
+++ b/makefile
@@ -438,7 +438,11 @@ changelog_:
changelog:
git log --pretty=format:'---%+s %+as %ae%+h%d%+b' --no-merges | sed "/^\\s*$$/d" | sed "s/^---$$//" | sed "s/^\(\*\)\+/-/" | sed "s/ \+$$//" | sed "s/ \+$//" > CHANGELOG_
+# git archive
gitZip:
+ if [ ! -d "./tarballGitHEAD" ]; then \
+ mkdir ./tarballGitHEAD; \
+ fi; \
git archive -v --format=tar --prefix=`echo spine-$(PROG_VER_DECLARED)-tag-$(PROG_VER_GIT)`/ HEAD | gzip > ./tarballGitHEAD/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"
@@ -486,11 +490,13 @@ get_depends:
echo $${hwd} && \
echo $${gwd} && \
dub upgrade; \
- if [ ! -d $${gwd} ]; then \
- mkdir -p $${gwd}/{d2sqlite3,D-YAML,imageformats,tinyendian}; \
- fi; \
+ deps=`echo "d2sqlite3 D-YAML imageformats tinyendian"` && \
+ for dir in $${deps}; do \
+ if [ ! -d $${gwd}/$${dir} ]; then \
+ mkdir -p $${gwd}/$${dir}; \
+ fi; \
+ done; \
cd $${gwd} && \
- deps=`ls -gx '.'` && \
for dir in $${deps}; do \
if [ -d $${dir} ]; then \
echo $${dir} && \
@@ -499,10 +505,10 @@ get_depends:
rm -rf $${dir} && \
git clone --depth=1 https://github.com/tjhann/$${dir} && \
cd $${dir} && \
- echo $$PWD && \
- echo "$${dir} `git rev-parse HEAD | cut -c 1-8`" > ../$${dir}.meta && \
- echo "https://github.com/tjhann/$${dir}" >> ../$${dir}.meta && \
- echo "$${license_bsl}" >> ../$${dir}.meta && \
+ echo $$PWD && \
+ echo "$${dir} `git rev-parse HEAD | cut -c 1-8`" > ../$${dir}.meta && \
+ echo "https://github.com/tjhann/$${dir}" >> ../$${dir}.meta && \
+ echo "$${license_bsl}" >> ../$${dir}.meta && \
cd $${gwd} && \
rm -rf $${dir}/.git; \
elif [[ "d2sqlite3" == $${dir} || "D-YAML" == $${dir} || "tinyendian" == $${dir} ]]; then \
@@ -510,9 +516,9 @@ get_depends:
rm -rf $${dir} && \
git clone --depth=1 https://github.com/dlang-community/$${dir} && \
cd $${dir} && \
- echo "$${dir} `git rev-parse HEAD | cut -c 1-8`" > ../$${dir}.meta && \
- echo "https://github.com/dlang-community/$${dir}" >> ../$${dir}.meta && \
- echo "$${license_bsl}" >> ../$${dir}.meta && \
+ echo "$${dir} `git rev-parse HEAD | cut -c 1-8`" > ../$${dir}.meta && \
+ echo "https://github.com/dlang-community/$${dir}" >> ../$${dir}.meta && \
+ echo "$${license_bsl}" >> ../$${dir}.meta && \
cd $${gwd} && \
rm -rf $${dir}/.git; \
fi; \