source: lang/dist/tarball/Makefile @ ef85bd7

help
Last change on this file since ef85bd7 was ef85bd7, checked in by pawelk <pawelk@…>, 17 years ago

Przygotowalem dystrybucje slownikow w wersji tar.gz.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@17 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# This makefile builds tarball distribution for utt dictionary.
2
3#
4# Some variables
5#
6DIR=$(shell pwd)
7
8# Common info about version and release
9_UTT_VER=$(shell cat ../../../app/dist/common/version.def)
10_UTT_REL=$(shell cat ../../../app/dist/common/release.def)
11
12# Temp vars
13_TARBALL_ROOT=$(DIR)/utt-$(_UTT_VER).$(_UTT_REL)
14_TAR_FILE_NAME=utt.dic.$(_UTT_VER)_$(_UTT_REL)
15
16#defualt task
17.PHONY: default
18default:
19        @echo Build directory: ${UTT_DIC_BIN}
20        @echo Output directory for tarball: ${UTT_DIC_OUTPUT}
21        mkdir -p ${_TARBALL_ROOT}
22        if test -n "${DIC_LANG}" -a -d ${UTT_DIC_BIN}/${DIC_LANG} ; \
23        then \
24            echo "Tworze dystrybucje ${DIC_LANG}"; \
25            mkdir -p ${_TARBALL_ROOT}/${DIC_LANG}; \
26            cp -fr ${UTT_DIC_BIN}/${DIC_LANG}/* ${_TARBALL_ROOT}/${DIC_LANG}/; \
27            cp -fr ${UTT_DIC_CONF_HOME}/${DIC_LANG}/* ${_TARBALL_ROOT}/${DIC_LANG}/; \
28            rm -rf ${_TARBALL_ROOT}/${DIC_LANG}/.svn ; \
29            tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.${DIC_LANG}.tar.gz utt*; \
30        else \
31            echo "Tworze pelna dystrybucje!"; \
32            cp -fr ${UTT_DIC_BIN}/* ${_TARBALL_ROOT}/; \
33            cp -fr ${UTT_DIC_CONF_HOME}/* ${_TARBALL_ROOT}/; \
34            find ${_TARBALL_ROOT} -name .svn -exec rm -rf {} \; ; \
35            tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.all.tar.gz utt*; \
36        fi
37       
38        rm -rf ${_TARBALL_ROOT}
39
Note: See TracBrowser for help on using the repository browser.