%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/extensions/Translate/vendor/davefx/phplot/phplot/ |
Current File : //www/varak.net/wiki.varak.net/extensions/Translate/vendor/davefx/phplot/phplot/Makefile |
# Makefile for release of PHPLot # $Id: Makefile 1776 2015-11-03 00:22:47Z lbayuk $ # Project name: PROJ=phplot # List of text files to release, and do CRLF line ending # conversions in the ZIP release only: REL_TXTFILES=COPYING ChangeLog NEWS.txt README.txt NEWS_part1.txt # List of all top-level files to release: REL=$(REL_TXTFILES) phplot.php rgb.inc.php # Contrib files to get CRLF line ending conversion in the Zip release: REL_CONTRIB_TXTFILES=contrib/README.txt # Contrib files to release: REL_CONTRIB=$(REL_CONTRIB_TXTFILES) \ contrib/color_range.example.php \ contrib/color_range.php \ contrib/color_range.test1.php \ contrib/color_range.test2.php \ contrib/data_table.example1.php \ contrib/data_table.example2.php \ contrib/data_table.example3.php \ contrib/data_table.php \ contrib/prune_labels.example.php \ contrib/prune_labels.php \ contrib/prune_labels.test.php \ # Temporary directory for building releases. Can be relative. # Release packages will be left here too. TMP=../tmp # Release directory name. VER comes from command line on "make VER=xxx release" RDIR=$(PROJ)-$(VER) # Release directory path: RDIRPATH=$(TMP)/$(RDIR) # For phpDocumentor2: # Path or name of php cli: PHP=php # Example command for phpDocumentor2 installed from unpacked release: #PHPDOCUMENTOR=/opt/phpdoc/bin/phpdoc run # Example command for phpDocumentor2 running from the PHAR package: PHPDOCUMENTOR=/opt/phpdoc/phpDocumentor.phar # phpDocumentor template to use: TEMPLATE=clean # Where to place the phpDocumentor output. PHPDOCDIR=../../docs default: @echo "Usage: make VER=v release : Make release packages" @echo " Example: make VER=5.0.1 release" @echo "Usage: make phpdoc : Make phpDocumentor2 docs" @echo " Specify PHPDOCDIR=path for destination directory" @echo " Specify PHP=command for the PHP CLI if necessary." release: @if [[ x$(VER) = x ]]; then echo "Error: must set VER variable"; exit 1; fi mkdir -p $(RDIRPATH) $(RDIRPATH)/contrib cp -v -p $(REL) $(RDIRPATH) cp -v -p $(REL_CONTRIB) $(RDIRPATH)/contrib (cd $(TMP); tar -cvzf $(RDIR).tar.gz --owner=0 --group=0 $(RDIR); ) (cd $(RDIRPATH); for f in $(REL_TXTFILES) $(REL_CONTRIB_TXTFILES);do todos < $$f > convert.tmp && mv -f convert.tmp $$f; done; ) (cd $(TMP); zip -r $(RDIR).zip $(RDIR); ) rm -rf $(RDIRPATH) @echo "Release packages are: $(TMP)/$(RDIR).zip" @echo " and: $(TMP)/$(RDIR).tar.gz" phpdoc: mkdir -p $(PHPDOCDIR) $(PHP) $(PHPDOCUMENTOR) --template=$(TEMPLATE) -f phplot.php -t $(PHPDOCDIR)