Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmonsoor committed Apr 18, 2016
0 parents commit 002a70d
Show file tree
Hide file tree
Showing 7 changed files with 1,368 additions and 0 deletions.
38 changes: 38 additions & 0 deletions galaxy/probmetab/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# USAGE: make [install|clean]
# make RELEASE=yes



# -------- CAN BE MODIFIED --------

#PACKAGES=package1.tgz package2.tgz
PACKAGES=probmetab.tgz

# ------------------------

all: $(PACKAGES)
ifeq ($(RELEASE),yes)
@echo "--Release version `date "+%Y%m%d"`--"
endif

# -------- CAN BE MODIFIED --------

probmetab.tgz: probmetab.r lib.r ProbMetab.xml static README.txt export.class.table-color-graph.R
$(SEDVERSION)
tar --exclude=".svn" -zchf $@ $^

# ------------------------

RELEASE=no
SEDVERSION=
ifeq ($(RELEASE),yes)
SEDVERSION=sed -i "s/version=\"[0-9]\+\"/version=\"`date "+%Y%m%d"`\"/" *.xml; sed -i "s/version=\"[0-9]\+\"/version=\"`date "+%Y%m%d"`\"/" *.r ; sed -i "s/version=\"[0-9]\+\"/version=\"`date "+%Y%m%d"`\"/" *.txt
endif

# ------------------------

install: $(PACKAGES)
cp $(PACKAGES) ~

clean:
rm $(PACKAGES)
Loading

0 comments on commit 002a70d

Please sign in to comment.