# -*-sh-*-
#
-# $Id: txtlib.in,v 1.2 1999/11/11 17:49:15 mdw Exp $
+# $Id: txtlib.in,v 1.3 2001/01/20 12:02:12 mdw Exp $
#
# Manipulate simple libraries of text chunks
#
#----- Revision history -----------------------------------------------------
#
# $Log: txtlib.in,v $
+# Revision 1.3 2001/01/20 12:02:12 mdw
+# Honour TMPDIR environment variable.
+#
# Revision 1.2 1999/11/11 17:49:15 mdw
# Regular expression fixes for parsing version numbers.
#
exit 0
;;
-v | --v | --ve | --ver | --vers | --versi | --versio | --version)
- version=`echo '$Revision: 1.2 $' |
+ version=`echo '$Revision: 1.3 $' |
sed -n -e 's;^.*: \([0-9.]*\) *\\$;\1;p'`
echo "txtlib $version; Common Files Distribution version @VERSION@"
exit 0
sed -n -e "/^.*\*@-\([-a-zA-Z0-9_]*\)-@\*.*$/ s//\1/p" "$@"
;;
x)
- t=/tmp/txtlib.$$
+ t=${TMPDIR-/tmp}/txtlib.$$
if mkdir -m 700 $t; then :
else
echo >&2 "txtlib: could not create temporary directory"