Skip to content

Commit

Permalink
Replace scripts with makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Nov 25, 2021
1 parent e5d0b8d commit 4ef54a2
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .env
@@ -0,0 +1,4 @@
CHANGELOG_START_TAG=ical4j-3.1.1
CHANGELOG_END_TAG=HEAD

GRADLE_VERSION=6.9.1
40 changes: 40 additions & 0 deletions Makefile
@@ -0,0 +1,40 @@
SHELL:=/bin/bash
include .env

.PHONY: all gradlew clean build zoneinfo changelog currentVersion markNextVersion release publish

all: test

gradlew:
./gradlew wrapper --gradle-version=$(GRADLE_VERSION) --distribution-type=bin

clean:
./gradlew clean

test:
./gradlew test

build:
./gradlew build

zoneinfo:
docker pull benfortuna/tzurl && \
docker run -v $(pwd)/src/main/resources/zoneinfo:/zoneinfo -it benfortuna/tzurl rsync -av --delete /usr/local/apache2/htdocs/zoneinfo / && \
docker run -v $(pwd)/src/main/resources/zoneinfo-global:/zoneinfo-global -it benfortuna/tzurl rsync -av --delete /usr/local/apache2/htdocs/zoneinfo-global /

changelog:
git log "$(CHANGELOG_START_TAG)...$(CHANGELOG_END_TAG)" \
--pretty=format:'* %s [View commit](http://github.com/ical4j/ical4j/commit/%H)' --reverse | grep -v Merge

currentVersion:
./gradlew -q currentVersion

markNextVersion:
NEXT_VERSION=$(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
./gradlew markNextVersion -Prelease.version=$(NEXT_VERSION)

release:
./gradlew release

publish:
./gradlew publish
4 changes: 0 additions & 4 deletions etc/scripts/generate-changelog.sh

This file was deleted.

2 changes: 0 additions & 2 deletions etc/scripts/gradle-upgrade.sh

This file was deleted.

5 changes: 0 additions & 5 deletions etc/scripts/mark-next-version.sh

This file was deleted.

4 changes: 0 additions & 4 deletions etc/scripts/update-zoneinfo.sh

This file was deleted.

0 comments on commit 4ef54a2

Please sign in to comment.