Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37734204
en ru br
ALT Linux repositórios
S:1.3.0-alt3.rc1
5.0: 1.3.0-alt2.rc1
4.1: 1.3.0-alt1.rc1

Group :: Gráficos
RPM: aview

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: aview-1.3.0-alt-tmpdir.patch
Download


diff -Naur aview-1.3.0.orig/asciiview aview-1.3.0/asciiview
--- aview-1.3.0.orig/asciiview	2001-04-25 19:59:22 +0400
+++ aview-1.3.0/asciiview	2008-10-24 01:02:22 +0400
@@ -3,11 +3,11 @@
 clear()
 {
   kill $! 2>/dev/null
-  rm -f /tmp/aview$$.pgm 2>/dev/null
+  rm -f $TMPDIR/aview$$.pgm 2>/dev/null
 }
 myconvert()
 {
-   if anytopnm $1 >/tmp/aview$$.pgm 2>/dev/null ; then
+   if anytopnm $1 > $TMPDIR/aview$$.pgm 2>/dev/null; then
      exit
    elif convert -colorspace gray $1 pgm:- 2>/dev/null ; then
      exit
@@ -51,8 +51,8 @@
   esac
 done
 trap clear 0
-mkfifo /tmp/aview$$.pgm
-outfile=/tmp/aview$$.pgm
+mkfifo $TMPDIR/aview$$.pgm
+outfile=$TMPDIR/aview$$.pgm
 for name in $filenames ; do
 if test -r $name ; then
 case $name in
@@ -61,10 +61,10 @@
   aaflip $options $name
   ;;
 *)
-  myconvert $name >/tmp/aview$$.pgm &
+  myconvert $name > $TMPDIR/aview$$.pgm &
   pid=$!
   PATH="$PATH:."
-  aview  $options /tmp/aview$$.pgm
+  aview  $options $TMPDIR/aview$$.pgm
   kill $pid 2>/dev/null
 esac
 else
 
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