source: _old/lang/dist/tarball/Makefile @ 57728c1

Last change on this file since 57728c1 was 57728c1, checked in by Mateusz Hromada <ruanda@…>, 15 years ago

Move old files to _old dir.

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[ef85bd7]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)
[a4d0da5]14_UTT_DIC_HOME=share/utt
[e28a625]15_TAR_FILE_NAME=utt.$(_UTT_VER)_$(_UTT_REL)
16
[ef85bd7]17
18#defualt task
19.PHONY: default
20default:
21        @echo Build directory: ${UTT_DIC_BIN}
22        @echo Output directory for tarball: ${UTT_DIC_OUTPUT}
[a4d0da5]23        mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME}
[e28a625]24        if [[ -n "${DIC_LANG}" && -d ${UTT_DIC_BIN}/${DIC_LANG} ]]; \
[ef85bd7]25        then \
26            echo "Tworze dystrybucje ${DIC_LANG}"; \
[a4d0da5]27            mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}; \
28            cp -fr ${UTT_DIC_BIN}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \
29            cp -fr ${UTT_DIC_CONF_HOME}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \
30            rm -rf ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/.svn ; \
[ef85bd7]31            tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.${DIC_LANG}.tar.gz utt*; \
32        else \
33            echo "Tworze pelna dystrybucje!"; \
[a4d0da5]34            cp -fr ${UTT_DIC_BIN}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \
35            cp -fr ${UTT_DIC_CONF_HOME}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \
[9b57c4d]36            find ${_TARBALL_ROOT}/${_UTT_DIC_HOME} -type d -path '*/.svn' -exec rm -rf {} \; ; \
[ef85bd7]37            tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.all.tar.gz utt*; \
38        fi
[9b57c4d]39
[ef85bd7]40        rm -rf ${_TARBALL_ROOT}
41
Note: See TracBrowser for help on using the repository browser.