[genius] unfinished file



commit 038de52d882fe3c611e35006e94d6871af2f64fd
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date:   Sat Apr 29 16:11:26 2017 -0500

    unfinished file

 help/make-makefile-am.sh |   51 ++++++++++++++++++++++++++++++++++++++++++++++
 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 0000000..c42eae6
--- /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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]