about summary refs log tree commit diff stats
path: root/samples/keepviewer
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2011-06-11 12:12:46 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2011-06-11 12:12:46 -0400
commit279010bc0791556e63b4951d83a2c45252142b80 (patch)
tree2f0ca07764a555764bb1f5a628a3468e88bf0c59 /samples/keepviewer
parent0b30d0d375231ff07227872f2d1d25f005e43e98 (diff)
downloadlynx-snapshots-279010bc0791556e63b4951d83a2c45252142b80.tar.gz
snapshot of project "lynx", label v2_8_8dev_9a
Diffstat (limited to 'samples/keepviewer')
-rwxr-xr-xsamples/keepviewer20
1 files changed, 0 insertions, 20 deletions
diff --git a/samples/keepviewer b/samples/keepviewer
deleted file mode 100755
index f5c0b2c1..00000000
--- a/samples/keepviewer
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# This script can be invoked as a wrapper for an external viewer by lynx, e.g., 
-# given this line in lynx.cfg
-#	XLOADIMAGE_COMMAND:keepviewer xli %s &
-# it will invoke xli on a hardlink to the file (which is assumed to be in the
-# temporary directory created by lynx), and clean up when the viewer exits.
-#
-# Parameters:
-#	$1 is viewer
-#	$2 is filename
-if test $# = 2 ; then
-	chmod 600 $2
-	myfile=`echo $2 | sed -e 's@\(.*/tmp/\)\([^/]*/\)\?\(.*\)@\1my\3@'`
-	ln $2 $myfile || exit 1
-	trap "rm -f $myfile" 0 1 2 5 15
-	eval $1 $myfile
-else
-	echo "Usage: keepviewer <viewer> <filename>"
-	exit 1
-fi