head	1.1;
access;
symbols
	RELENG_8_4:1.1.0.8
	RELENG_9_1_0_RELEASE:1.1.2.2
	RELENG_9_1:1.1.2.2.0.2
	RELENG_9_1_BP:1.1.2.2
	RELENG_7:1.1.0.6
	RELENG_8:1.1.0.4
	RELENG_9:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2012.02.22.03.36.15;	author mp;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.6.1
	1.1.8.1;
next	;

1.1.2.1
date	2012.03.07.01.26.24;	author mp;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2012.03.07.01.26.24;	author mp;	state Exp;
branches;
next	;

1.1.4.1
date	2012.03.07.01.31.29;	author mp;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2012.03.07.01.31.29;	author mp;	state Exp;
branches;
next	;

1.1.6.1
date	2012.03.07.22.19.43;	author mp;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2012.03.07.22.19.43;	author mp;	state Exp;
branches;
next	;

1.1.8.1
date	2012.02.22.03.36.15;	author svnexp;	state dead;
branches;
next	1.1.8.2;

1.1.8.2
date	2013.03.28.13.02.05;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 231990 on 2012-02-22 03:36:15Z by mp

Update to tcsh 6.18.01.
@
text
@#! /usr/bin/env python2.5

import sys
import os

#for name in os.environ.keys():
#	print "key " + name + " = " + os.environ[name]

def print_output(cmd, prefix):
	pipeOut = os.popen3(cmd, mode = 'br')[1]
	for line in pipeOut:
		term = ""
		if os.path.isdir(line.strip()):
			term = "/"
		print prefix + line.strip() + term
	pipeOut.close()

if not os.environ.has_key("COMMAND_LINE"):
	print "Fancy completion is not supported by your version of tcsh."
	sys.exit(1)

cmdLine = os.environ["COMMAND_LINE"]
URL = cmdLine.split()[2]
dir = "/" + URL.split('/', 3)[3]
prefix = "file:/"

if dir[-1] != "/":
	dir = dir.rpartition("/")[0] + "/"

print_output("svn ls " + "file://" + dir, prefix + "/" + dir)
print_output("ls -d /" + dir + "*", prefix)

@


1.1.8.1
log
@file svn was added on branch RELENG_8_4 on 2013-03-28 13:02:05 +0000
@
text
@d1 32
@


1.1.8.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 32
#! /usr/bin/env python2.5

import sys
import os

#for name in os.environ.keys():
#	print "key " + name + " = " + os.environ[name]

def print_output(cmd, prefix):
	pipeOut = os.popen3(cmd, mode = 'br')[1]
	for line in pipeOut:
		term = ""
		if os.path.isdir(line.strip()):
			term = "/"
		print prefix + line.strip() + term
	pipeOut.close()

if not os.environ.has_key("COMMAND_LINE"):
	print "Fancy completion is not supported by your version of tcsh."
	sys.exit(1)

cmdLine = os.environ["COMMAND_LINE"]
URL = cmdLine.split()[2]
dir = "/" + URL.split('/', 3)[3]
prefix = "file:/"

if dir[-1] != "/":
	dir = dir.rpartition("/")[0] + "/"

print_output("svn ls " + "file://" + dir, prefix + "/" + dir)
print_output("ls -d /" + dir + "*", prefix)

@


1.1.6.1
log
@file svn was added on branch RELENG_7 on 2012-03-07 22:21:53 +0000
@
text
@d1 32
@


1.1.6.2
log
@SVN rev 232674 on 2012-03-07 22:19:43Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@a0 32
#! /usr/bin/env python2.5

import sys
import os

#for name in os.environ.keys():
#	print "key " + name + " = " + os.environ[name]

def print_output(cmd, prefix):
	pipeOut = os.popen3(cmd, mode = 'br')[1]
	for line in pipeOut:
		term = ""
		if os.path.isdir(line.strip()):
			term = "/"
		print prefix + line.strip() + term
	pipeOut.close()

if not os.environ.has_key("COMMAND_LINE"):
	print "Fancy completion is not supported by your version of tcsh."
	sys.exit(1)

cmdLine = os.environ["COMMAND_LINE"]
URL = cmdLine.split()[2]
dir = "/" + URL.split('/', 3)[3]
prefix = "file:/"

if dir[-1] != "/":
	dir = dir.rpartition("/")[0] + "/"

print_output("svn ls " + "file://" + dir, prefix + "/" + dir)
print_output("ls -d /" + dir + "*", prefix)

@


1.1.4.1
log
@file svn was added on branch RELENG_8 on 2012-03-07 01:32:56 +0000
@
text
@d1 32
@


1.1.4.2
log
@SVN rev 232635 on 2012-03-07 01:31:29Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@a0 32
#! /usr/bin/env python2.5

import sys
import os

#for name in os.environ.keys():
#	print "key " + name + " = " + os.environ[name]

def print_output(cmd, prefix):
	pipeOut = os.popen3(cmd, mode = 'br')[1]
	for line in pipeOut:
		term = ""
		if os.path.isdir(line.strip()):
			term = "/"
		print prefix + line.strip() + term
	pipeOut.close()

if not os.environ.has_key("COMMAND_LINE"):
	print "Fancy completion is not supported by your version of tcsh."
	sys.exit(1)

cmdLine = os.environ["COMMAND_LINE"]
URL = cmdLine.split()[2]
dir = "/" + URL.split('/', 3)[3]
prefix = "file:/"

if dir[-1] != "/":
	dir = dir.rpartition("/")[0] + "/"

print_output("svn ls " + "file://" + dir, prefix + "/" + dir)
print_output("ls -d /" + dir + "*", prefix)

@


1.1.2.1
log
@file svn was added on branch RELENG_9 on 2012-03-07 01:29:36 +0000
@
text
@d1 32
@


1.1.2.2
log
@SVN rev 232633 on 2012-03-07 01:26:24Z by mp

MFC r231990

Update to tcsh 6.18.01
@
text
@a0 32
#! /usr/bin/env python2.5

import sys
import os

#for name in os.environ.keys():
#	print "key " + name + " = " + os.environ[name]

def print_output(cmd, prefix):
	pipeOut = os.popen3(cmd, mode = 'br')[1]
	for line in pipeOut:
		term = ""
		if os.path.isdir(line.strip()):
			term = "/"
		print prefix + line.strip() + term
	pipeOut.close()

if not os.environ.has_key("COMMAND_LINE"):
	print "Fancy completion is not supported by your version of tcsh."
	sys.exit(1)

cmdLine = os.environ["COMMAND_LINE"]
URL = cmdLine.split()[2]
dir = "/" + URL.split('/', 3)[3]
prefix = "file:/"

if dir[-1] != "/":
	dir = dir.rpartition("/")[0] + "/"

print_output("svn ls " + "file://" + dir, prefix + "/" + dir)
print_output("ls -d /" + dir + "*", prefix)

@


