From abc5771ac4c9433c158fcff2ca874a3a44f51190 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 3 Apr 2017 03:49:53 -0400 Subject: "release" tarball system --- Makefile | 10 ++++++++-- mktarball.sh | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 mktarball.sh diff --git a/Makefile b/Makefile index 64840e1..7a00920 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ - +PROJECT=ttf-console-fonts PSFDIR=/usr/share/kbd/consolefonts -.PHONY: all clean install +.PHONY: all clean install push tarball all: .done @@ -15,3 +15,9 @@ clean: install: all mkdir -p $(DESTDIR)$(PSFDIR) install -m0644 *.psfu.gz $(DESTDIR)$(PSFDIR) + +push: clean + git push + +tarball: push + sh mktarball.sh $(PROJECT) diff --git a/mktarball.sh b/mktarball.sh new file mode 100644 index 0000000..1c00de9 --- /dev/null +++ b/mktarball.sh @@ -0,0 +1,15 @@ +#!/bin/sh + + #( cd .. ; tar cvfz $(PROJECT)-$(shell git log --date='format:%Y%M%d' --pretty=format:%ad_%h @^ ).tar.gz $(PROJECT) ; + +TMP=${TMP:-/tmp} +PROJECT="$1" +VERSION="$( git log --date='format:%Y%m%d' --pretty=format:%ad_%h @^ )" + +rm -rf $TMP/$PROJECT-$VERSION +mkdir -p $TMP/$PROJECT-$VERSION +cp -a * $TMP/$PROJECT-$VERSION +cd $TMP +tar cvfz $PROJECT-$VERSION.tar.gz $PROJECT-$VERSION +naptime $PROJECT-$VERSION.tar.gz +md5sum $PROJECT-$VERSION.tar.gz -- cgit v1.2.3