summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2008-12-14 13:41:01 (GMT)
committer Jaromil <jaromil@dyne.org>2008-12-14 13:41:01 (GMT)
commit73f660c4536104f8aa9aef20f02f704abb97c63f (patch)
treea8e871369b7bc035916d503199260627cc9e4b31
parent9290304bcf1cc91bd80d05ea2529d806e64e2e8c (diff)
fix for including images in pdf
somehow docbook on ubuntu needs .jpg extension on files (older?) version needed no extension, as it is still in html rendering
-rw-r--r--dynebolic/Makefile13
-rw-r--r--dynebolic/dsssl-stylesheets-1.79/html/dbparam.dsl2
-rw-r--r--dynebolic/dsssl-stylesheets-1.79/pdf/dbparam.dsl2
-rwxr-xr-xdynebolic/images/convert_for_html.sh27
4 files changed, 30 insertions, 14 deletions
diff --git a/dynebolic/Makefile b/dynebolic/Makefile
index 16a04f4..845d7ad 100644
--- a/dynebolic/Makefile
+++ b/dynebolic/Makefile
@@ -77,32 +77,33 @@ info : $(DEPS) texi
book : $(DEPS)
rm -f dynebolic-manual.pdf
docbook2pdf -d $(DSSSL-print) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
postscript : $(DEPS)
rm -f dynebolic-manual.pdf
docbook2ps -d $(DSSSL-print) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
+
rtf : $(DEPS)
rm -f dynebolic-manual.rtf
docbook2rtf -d $(DSSSL-pdf) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
tex : $(DEPS)
rm -f dynebolic-manual.tex
docbook2tex -d $(DSSSL-print) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
dvi : $(DEPS)
rm -f dynebolic-manual.dvi
docbook2dvi -d $(DSSSL-print) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
man : $(DEPS)
rm -f dynebolic.man
docbook2man -d $(DSSSL-html) -D $(man-language) \
- dynebolic-manual.sgml
+ dynebolic-manual-$(man-language).sgml
clean :
diff --git a/dynebolic/dsssl-stylesheets-1.79/html/dbparam.dsl b/dynebolic/dsssl-stylesheets-1.79/html/dbparam.dsl
index f3448f5..5a32014 100644
--- a/dynebolic/dsssl-stylesheets-1.79/html/dbparam.dsl
+++ b/dynebolic/dsssl-stylesheets-1.79/html/dbparam.dsl
@@ -348,7 +348,7 @@
;; /DESC
;; AUTHOR N/A
;; /REFENTRY
- "../images/")
+ "images/")
(define ($admon-graphic$ #!optional (nd (current-node)))
;; REFENTRY admon-graphic
diff --git a/dynebolic/dsssl-stylesheets-1.79/pdf/dbparam.dsl b/dynebolic/dsssl-stylesheets-1.79/pdf/dbparam.dsl
index 5416682..c2a1c03 100644
--- a/dynebolic/dsssl-stylesheets-1.79/pdf/dbparam.dsl
+++ b/dynebolic/dsssl-stylesheets-1.79/pdf/dbparam.dsl
@@ -1304,7 +1304,7 @@
;; /DESC
;; AUTHOR N/A
;; /REFENTRY
- "../images/")
+ "images/")
;; just for back compat, set it false to say its not set
diff --git a/dynebolic/images/convert_for_html.sh b/dynebolic/images/convert_for_html.sh
index 833c35c..8108f45 100755
--- a/dynebolic/images/convert_for_html.sh
+++ b/dynebolic/images/convert_for_html.sh
@@ -3,25 +3,40 @@
lang=$1
target=$2
+
case $target in
+
+
+
html)
outdir="$lang/html/images"
+ mkdir -p $outdir
+ for i in `ls images/*.png`; do
+ file="`basename $i | cut -d. -f1`"
+ echo "converting $file to jpeg"
+ convert $i "$outdir/${file}"
+ done
;;
+
+
pdf)
outdir="$lang/images"
+ mkdir -p $outdir
+ for i in `ls images/*.png`; do
+ file="`basename $i | cut -d. -f1`"
+ echo "converting $file to jpeg"
+ convert $i "$outdir/${file}.jpg"
+ done
+
;;
+
+
*)
echo "ERROR in image/convert.sh - must specify a target, i.e: convert.sh EN html"
exit 0
;;
esac
-mkdir -p $outdir
-for i in `ls images/*.png`; do
- file="`basename $i | cut -d. -f1`"
- echo "converting $file to jpeg"
- convert $i "$outdir/${file}"
-done
echo "images prepared in $outdir"