summaryrefslogtreecommitdiff
blob: c2a0977fc65cd6ff582eb5aa0d3abe7efd213a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- Makefile.am.orig	2006-12-02 14:23:01.000000000 +0300
+++ Makefile.am	2007-01-21 17:43:13.000000000 +0300
@@ -3,17 +3,19 @@
 STAMP_DIR = stamps
 
 IMAGE_DIRS = \
+	.		\
+	callouts	\
 	dialogs		\
 	dialogs/examples\
 	filters		\
 	filters/examples\
 	glossary	\
+	math		\
+	menus		\
+	preferences	\
 	tool-options	\
 	toolbox		\
-	callouts	\
-	preferences	\
-	using           \
-	menus
+	using
 
 IMAGE_FILES = \
 	$(wildcard $(top_srcdir)/images/*.png)		\
@@ -93,9 +95,21 @@
 	@echo '*** Creating directories ***'
 
     # we care only for HTML here
-	@for name in `find $(top_srcdir)/images/ -name "*.png" -o -name "*.jpg"`;\
-		do $(mkinstalldirs) `dirname html/$$name`; \
+	@for lang in $(ALL_LINGUAS); do \
+	  echo 'Language: '$$lang; \
+	  if test $$lang = "en"; then \
+	    for dir in $(IMAGE_DIRS); do \
+	      for file in `echo $(top_srcdir)/images/$$dir/*.png` `echo $(top_srcdir)/images/$$dir/*.jpg`; do \
+		$(mkinstalldirs) `dirname html/$$file`; \
+	      done; \
+	    done; \
+	  else \
+	    for file in `find images/ -wholename "*/$$lang/*.png" -o -wholename "*/$$lang/*.jpg"`; do \
+	      $(mkinstalldirs) `dirname html/$$file`; \
+	    done; \
+	  fi; \
 	done;
+
   # only create a link in the PDF directory, because image files are
   # included in the PDF anyways
 	@echo '*** Creating link in PDF directory to images ***'
@@ -133,8 +147,19 @@
 	@echo '*** Copying images ***'
 
   # copy the image files to html directory
-	@for name in `find $(top_srcdir)/images/ -name "*.png" -o -name "*.jpg"`;\
-    do cp $$name html/$$name; \
+	@for lang in $(ALL_LINGUAS); do \
+	  echo 'Language: '$$lang; \
+	  if test $$lang = "en"; then \
+	    for dir in $(IMAGE_DIRS); do \
+	      for file in `echo $(top_srcdir)/images/$$dir/*.png` `echo $(top_srcdir)/images/$$dir/*.jpg`; do \
+		test -f $$file && cp $$file html/$$file; \
+	      done; \
+	    done; \
+	  else \
+	    for file in `find images/ -wholename "*/$$lang/*.png" -o -wholename "*/$$lang/*.jpg"`; do \
+	      cp $$file html/$$file; \
+	    done; \
+	  fi; \
 	done;
 
 	@touch $@