help
Last change
on this file since df77b87 was
a4d0da5,
checked in by pawelk <pawelk@…>, 17 years ago
|
Zmodyfikowalem pliki licencji i praw, poprawilem generowanie tarballa dla slownikow, uaktualnilem generowanie konfiguracji o plik compiledict.conf.
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@18 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[ef85bd7] | 1 | # This makefile builds tarball distribution for utt dictionary. |
---|
| 2 | |
---|
| 3 | # |
---|
| 4 | # Some variables |
---|
| 5 | # |
---|
| 6 | DIR=$(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 |
---|
[ef85bd7] | 15 | _TAR_FILE_NAME=utt.dic.$(_UTT_VER)_$(_UTT_REL) |
---|
| 16 | |
---|
| 17 | #defualt task |
---|
| 18 | .PHONY: default |
---|
| 19 | default: |
---|
| 20 | @echo Build directory: ${UTT_DIC_BIN} |
---|
| 21 | @echo Output directory for tarball: ${UTT_DIC_OUTPUT} |
---|
[a4d0da5] | 22 | mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME} |
---|
[ef85bd7] | 23 | if test -n "${DIC_LANG}" -a -d ${UTT_DIC_BIN}/${DIC_LANG} ; \ |
---|
| 24 | then \ |
---|
| 25 | echo "Tworze dystrybucje ${DIC_LANG}"; \ |
---|
[a4d0da5] | 26 | mkdir -p ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}; \ |
---|
| 27 | cp -fr ${UTT_DIC_BIN}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \ |
---|
| 28 | cp -fr ${UTT_DIC_CONF_HOME}/${DIC_LANG}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/; \ |
---|
| 29 | rm -rf ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/${DIC_LANG}/.svn ; \ |
---|
[ef85bd7] | 30 | tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.${DIC_LANG}.tar.gz utt*; \ |
---|
| 31 | else \ |
---|
| 32 | echo "Tworze pelna dystrybucje!"; \ |
---|
[a4d0da5] | 33 | cp -fr ${UTT_DIC_BIN}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \ |
---|
| 34 | cp -fr ${UTT_DIC_CONF_HOME}/* ${_TARBALL_ROOT}/${_UTT_DIC_HOME}/; \ |
---|
| 35 | find ${_TARBALL_ROOT}/${_UTT_DIC_HOME} -name .svn -exec rm -rf {} \; ; \ |
---|
[ef85bd7] | 36 | tar -czf ${UTT_DIC_OUTPUT}/${_TAR_FILE_NAME}.all.tar.gz utt*; \ |
---|
| 37 | fi |
---|
| 38 | |
---|
| 39 | rm -rf ${_TARBALL_ROOT} |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.