Commit c0b46a1483fee8f3c50d66689837457205c0e873

Authored by David Silva
Committed by Alessandro Beltrão
1 parent 68632e49

Initial noosfero automatic packing.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Signed-off-by: Ricardo Teixeira <ricardocdzg@gmail.com>
Showing 1 changed file with 15 additions and 1 deletions   Show diff stats
src/Makefile
1 1 VERSION = $(shell cat ../VERSION)
  2 +VERSION = $(shell cat ../VERSION)
2 3 subdirs = colab-spb-plugin colab-spb-theme-plugin noosfero-spb
3 4  
  5 +NOOSFERO_REPO = 'git@softwarepublico.gov.br:softwarepublico/noosfero.git'
  6 +FILTER_LAST_TAG = $(shell tail -n 1 | sed 's/^.*\///')
  7 +NOOSFERO_REMOTE_VERSION = $(shell git ls-remote --tags 'git@softwarepublico.gov.br:softwarepublico/noosfero.git' | tail -n 1 | sed 's/^.*\///' | sed 's/\^{}//')
  8 +NOOSFERO_GITLAB_VERSION = $(shell git ls-remote --tags 'git@softwarepublico.gov.br:softwarepublico/noosfero.git' | tail -n 1 | sed 's/^.*\///'| sed 's/+/%2B/' | sed 's/\^{}//')
  9 +#NOOSFERO_GITLAB_VERSION = $(shell $(NOOSFERO_REMOTE_VERSION) | sed 's/+/%2B/')
  10 +ACTUAL_NOOSFERO_VERSION = $(shell cat pkg-rpm/noosfero/noosfero.spec | grep Version | sed 's/^.*\s//')
  11 +
4 12 dist_all = $(patsubst %, %-dist, $(subdirs))
5 13 dist: $(dist_all)
6 14 $(dist_all): %-dist : %
... ... @@ -15,7 +23,7 @@ $(clean_all): %-clean : %
15 23 if [ -f $*/Makefile ]; then make -C $* clean; fi
16 24 if [ -f $*/setup.py ]; then rm -rf $*/dist; fi
17 25  
18   -release:
  26 +release_plugins:
19 27 @if git tag | grep -q '^v$(VERSION)$$'; then \
20 28 echo "E: version $(VERSION) already tagged. You need a new version number"; \
21 29 false; \
... ... @@ -47,3 +55,9 @@ release:
47 55 # TODO add pkg-rpm/colab-spb-plugin to the git checkout all above
48 56 $(MAKE) -C pkg-rpm/ noosfero-spb-upload colab-spb-theme-upload colab-spb-plugin-upload
49 57 git tag $(VERSION) -s -m 'SPB Release $(VERSION)'
  58 +
  59 +release_noosfero:
  60 + wget https://softwarepublico.gov.br/gitlab/softwarepublico/noosfero/repository/archive.tar.gz?ref=$(NOOSFERO_GITLAB_VERSION) --no-check-certificate -O pkg-rpm/noosfero/noosfero-$(NOOSFERO_REMOTE_VERSION).tar.gz
  61 + sed -i -e 's/^\(Version:\s*\).*/\1$(NOOSFERO_REMOTE_VERSION)/' \
  62 + pkg-rpm/noosfero/noosfero.spec
  63 + $(MAKE) -C pkg-rpm/ noosfero-build
... ...