updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / gbgoffice / 11_dict_datadir.patch
blob31535c1fb85c746238fc3d783495cf460a062694
1 diff -Naur full-pack/Makefile full-pack-new/Makefile
2 --- full-pack/Makefile 2006-04-20 18:24:23.000000000 +0300
3 +++ full-pack-new/Makefile 2011-01-12 00:25:06.000000000 +0200
4 @@ -4,15 +4,6 @@
8 -DATA_DIR1:=$(shell kbgoffice --dump-data-dir 2> /dev/null)
9 -DATA_DIR2:=$(shell gbgoffice --dump-data-dir 2> /dev/null)
10 -DATA_DIR3:=$(shell cbgoffice --dump-data-dir 2> /dev/null)
12 -DATA_DIR:=
13 -DATA_DIR:=$(if ${DATA_DIR},${DATA_DIR},${DATA_DIR1})
14 -DATA_DIR:=$(if ${DATA_DIR},${DATA_DIR},${DATA_DIR2})
15 -DATA_DIR:=$(if ${DATA_DIR},${DATA_DIR},${DATA_DIR3})
17 DATA_DIR:=$(shell echo ${DATA_DIR} | sed 's/\/$$//')
20 @@ -43,21 +34,8 @@
22 check:
23 @echo ""
24 - @if (test -z "${DATA_DIR1}"); then \
25 - if (test -z "${DATA_DIR2}"); then \
26 - if (test -z "${DATA_DIR3}"); then \
27 - echo "Application 'kbgoffice' (or 'gbgoffice', or 'cbgoffice') is not installed."; \
28 - echo "You need to install at least one of them first."; \
29 - echo "For more info visit http://bgoffice.sourceforge.net/"; \
30 - echo ""; \
31 - exit 1; \
32 - else \
33 - echo "Found cbgoffice."; \
34 - fi \
35 - else \
36 - echo "Found gbgoffice."; \
37 - fi \
38 - else \
39 - echo "Found kbgoffice."; \
40 + @if (test -z "${DATA_DIR}"); then \
41 + echo "You must set DATA_DIR"; \
42 + exit 1; \
44 @echo ""