From 920e522c9eb0d620d9272601f22282a292a256be Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 30 Jul 2016 18:29:54 -0400 Subject: [PATCH] Replace shell-script by Makefile to make a new archive --- Makefile | 4 ++++ scripts/make-release.sh | 29 ----------------------------- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100755 scripts/make-release.sh diff --git a/Makefile b/Makefile index 342912b..82e15af 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,7 @@ js: @ echo "/* AUTO GENERATED FILE, DO NOT MODIFY THIS FILE, USE 'make js' */" > ${JS_FILE} @ cat assets/js/app.js assets/js/feed.js assets/js/item.js assets/js/event.js assets/js/nav.js >> ${JS_FILE} @ echo "Miniflux.App.Run();" >> ${JS_FILE} + +# Build a new archive: make archive version=1.2.3 dst=/tmp +archive: + @ git archive --format=zip --prefix=miniflux/ v${version} -o ${dst}/miniflux-${version}.zip diff --git a/scripts/make-release.sh b/scripts/make-release.sh deleted file mode 100755 index 520ba50..0000000 --- a/scripts/make-release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -if [ $# -eq 0 ]; then - echo 1>&2 "Usage: $0 [destination]" - exit 2 -fi - -VERSION=$1 -DESTINATION=$2 -APP="miniflux" - -if [ -z "$2" ] -then - DESTINATION=~/Devel/websites/$APP -fi - -# tag the release -git tag -a v$VERSION -m "Version $VERSION" && git push origin v$VERSION || exit 2 - -# create the archive -git archive --format=zip --prefix=$APP/ v$VERSION -o $DESTINATION/$APP-$VERSION.zip - -cd $DESTINATION - -if [ -L $APP-latest.zip ] -then - unlink $APP-latest.zip - ln -s $APP-$VERSION.zip $APP-latest.zip -fi