summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorJiri (George) Lebl <jiri.lebl@gmail.com>2017-04-29 16:11:26 -0500
committerJiri (George) Lebl <jiri.lebl@gmail.com>2017-04-29 16:12:04 -0500
commit038de52d882fe3c611e35006e94d6871af2f64fd (patch)
treeba27b9a22f5a236c419bf508cf2033397fefbbc5 /help
parent3b6ee359884528a67c86bf4aaf72408721e905df (diff)
unfinished file
Diffstat (limited to 'help')
-rwxr-xr-xhelp/make-makefile-am.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/help/make-makefile-am.sh b/help/make-makefile-am.sh
new file mode 100755
index 00000000..c42eae66
--- /dev/null
+++ b/help/make-makefile-am.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+LANGS="cs de el es fr pt_BR ru sv"
+
+FIGUREBASENAMES=""
+CFIGURES=""
+for n in `ls C/figures/*.png 2>/dev/null` ; do
+ CFIGURES="$CFIGURES $n"
+ FIGUREBASENAMES="$FIGUREBASENAMES `basename $n`"
+done
+
+EXTRAFILES="$CFIGURES"
+
+for lang in $LANGS ; do
+ LANGBASENAMES=""
+ for n in `ls $lang/figures/*.png 2>/dev/null` ; do
+ LANGBASENAMES="$LANGBASENAMES `basename $n`"
+ done
+ LANGBASENAMES=`echo $LANGBASENAMES $FIGUREBASENAMES | sed 's/ /\n/g' | sort | uniq`
+ LANGBASENAMES=`echo $LANGBASENAMES`
+
+ THEFIGURES=""
+
+ echo
+ echo $lang
+
+ for b in $LANGBASENAMES ; do
+ if test -e $lang/figures/$b ; then
+ THEFIGURES="$THEFIGURES $lang/figures/$b"
+ EXTRAFILES="$EXTRAFILES $lang/figures/$b"
+ else
+ THEFIGURES="$THEFIGURES C/figures/$b"
+ fi
+ done
+
+ echo "$THEFIGURES"
+done
+
+echo
+echo EXTRA: $EXTRAFILES
+
+cat > foo.out <<EOF
+###################################################################
+# THIS FILE IS AUTOGENERATED DO NOT EDIT. EDIT make-makefile-am.sh
+###################################################################
+
+# Text version of the manual
+manualdir = \$(datadir)/genius
+manual_DATA = genius.txt
+
+EXTRA_DIST = $EXTRAFILES
+EOF