Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37754298
en ru br
ALT Linux repositórios
S:1.3-alt1.1
D:0.44-alt1
5.0: 0.46-alt4.1
4.1: 0.46-alt1.M41.3
4.0: 0.45.1-alt3
3.0: 0.41-alt1cvs20050320

Group :: Gráficos
RPM: inkscape

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: inkscape-dia.patch
Download


--- share/extensions/dia2svg.sh.orig	2007-01-16 05:06:10 +0300
+++ share/extensions/dia2svg.sh	2007-03-01 02:19:53 +0300
@@ -2,12 +2,13 @@
 
 rc=0
 
+which dia 2>&1 >/dev/null && DIA=dia || exit 1
 # dia version 0.93 (the only version I've tested) allows `--export=-', but then
 # ruins it by writing other cruft to stdout.  So we'll have to use a temp file.
 # dia 0.95 removes --export-to-format but still allows -t.
 TMPDIR="${TMPDIR-/tmp}"
 TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/tmpdia$$.svg"`
-dia -n --export="${TEMPFILENAME}" -t svg "$1" > /dev/null 2>&1 || rc=1
+$DIA -n --export="${TEMPFILENAME}" -t svg "$1" > /dev/null 2>&1 || rc=1
 
 cat < "${TEMPFILENAME}" || rc=1
 rm -f "${TEMPFILENAME}"
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009