diff options
-rw-r--r-- | Cmds | 8 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | Misc | 12 |
3 files changed, 13 insertions, 12 deletions
@@ -32,10 +32,10 @@ RMDIR = echo -e " RM\t$(1)" && rmdir --ignore-fail-on-non-empty $(1) 2> /dev/nu GZIP = gzip --best -c # Git related -GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_STRING)/ v$(VERSION_STRING) | \ - $(1) > ../netsniff-ng-$(VERSION_STRING).tar.$(2) -GIT_TAG = git tag -a $(VERSION_STRING) -s -m "tools: $(VERSION_STRING) release" +GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_SHORT)/ v$(VERSION_SHORT) | \ + $(1) > ../netsniff-ng-$(VERSION_SHORT).tar.$(2) +GIT_TAG = git tag -a $(VERSION_SHORT) -s -m "$(VERSION_SHORT) release" GIT_LOG = git shortlog -n --not $(shell git describe --always --abbrev=0 --tags) GIT_REM = git ls-files -o | xargs rm -rf -GIT_PEOPLE = git log --no-merges $(VERSION_STRING)..HEAD | grep Author: | cut -d: -f2 | \ +GIT_PEOPLE = git log --no-merges $(VERSION_SHORT)..HEAD | grep Author: | cut -d: -f2 | \ cut -d\< -f1 | sort | uniq -c | sort -nr @@ -102,8 +102,9 @@ ifeq ("$(origin CROSS_LD_LIBRARY_PATH)", "command line") LDFLAGS += -L$(CROSS_LD_LIBRARY_PATH) endif -VERSION_STRING = "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(CONFIG_RC)" -VERSION_LONG = "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(CONFIG_RC) ($(NAME))" +VERSION_SHORT = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) +VERSION_STRING = "$(VERSION_SHORT)$(CONFIG_RC)" +VERSION_LONG = "$(VERSION_SHORT)$(CONFIG_RC) ($(NAME))" export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION export CROSS_COMPILE @@ -12,14 +12,14 @@ tag: $(GIT_TAG) announcement: - $(Q)echo -e "netsniff-ng $(VERSION_STRING) has been released to the public (http://netsniff-ng.org/).\n" > .MAIL_MSG + $(Q)echo -e "netsniff-ng $(VERSION_SHORT) has been released to the public (http://netsniff-ng.org/).\n" > .MAIL_MSG $(Q)echo -e "It can be fetched via Git, through:\n" >> .MAIL_MSG $(Q)echo -e " git clone git://github.com/borkmann/netsniff-ng.git" >> .MAIL_MSG - $(Q)echo -e " git checkout $(VERSION_STRING)\n" >> .MAIL_MSG + $(Q)echo -e " git checkout $(VERSION_SHORT)\n" >> .MAIL_MSG $(Q)echo -e "Or via HTTP, through:\n" >> .MAIL_MSG - $(Q)echo -e " wget http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-$(VERSION_STRING).tar.gz\n" >> .MAIL_MSG + $(Q)echo -e " wget http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-$(VERSION_SHORT).tar.gz\n" >> .MAIL_MSG $(Q)echo -e "The release be verified via Git, through (see README):\n" >> .MAIL_MSG - $(Q)echo -e " git tag -v $(VERSION_STRING)\n" >> .MAIL_MSG + $(Q)echo -e " git tag -v $(VERSION_SHORT)\n" >> .MAIL_MSG $(Q)echo -e "Major high-level changes since the last release are:\n" >> .MAIL_MSG $(Q)echo -e " *** BLURB HERE ***\n" >> .MAIL_MSG $(Q)echo -e "Contributors since last release:\n" >> .MAIL_MSG @@ -27,8 +27,8 @@ announcement: $(Q)echo -e "\nGit changelog since the last release:\n" >> .MAIL_MSG $(GIT_LOG) >> .MAIL_MSG -release: announcement tag tarball - $(Q)echo "Released $(bold)$(VERSION_STRING)$(normal)" +release: tag announcement tarball + $(Q)echo "Released $(bold)$(VERSION_SHORT)$(normal)" FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \ find . \( -name .git -type d -prune \) \ |