-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f485b1
commit 13fff62
Showing
4 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
testdir/ | ||
build/ | ||
releases/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ifndef MC_SYNTAX | ||
ifneq ($(wildcard /usr/local/share/mc/syntax/Syntax),) | ||
MC_SYNTAX=/usr/local/share/mc/syntax/Syntax | ||
else ifneq ($(wildcard /usr/share/mc/syntax/Syntax),) | ||
MC_SYNTAX=/usr/share/mc/syntax/Syntax | ||
else | ||
$(error Specify MC_SYNTAX to point to the location of the midnight commander syntax file) | ||
endif | ||
endif | ||
|
||
RELEASE_VERSION ?= $(shell git tag --points-at HEAD) | ||
|
||
# Example usage for non-HEAD version: RELEASE_VERSION=v4.1.0 make tarball | ||
.PHONY: tarball | ||
tarball: | ||
@[ -n "$(RELEASE_VERSION)" ] || { echo "Error: HEAD has no version tag, and no version was set in RELEASE_VERSION"; exit 1; } | ||
rm -rf build/syntax build/skins "releases/mc-solarized-truecolor-$(RELEASE_VERSION)" | ||
mkdir -p "releases/mc-solarized-truecolor-$(RELEASE_VERSION)" | ||
./makeskins.pl --syntaxfile "$(MC_SYNTAX)" --version "$(RELEASE_VERSION)" | ||
mv build/syntax build/skins "releases/mc-solarized-truecolor-$(RELEASE_VERSION)/" | ||
cd releases && zip -r "mc-solarized-truecolor-$(RELEASE_VERSION).zip" "mc-solarized-truecolor-$(RELEASE_VERSION)" | ||
rm -rf "releases/mc-solarized-truecolor-$(RELEASE_VERSION)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters