Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Author: Mike Markley <mike@markley.org> |
| 2 | Author: Sergei Golovan <sgolovan@debian.org> |
| 3 | Description: Fixes shebangs in examples (Closes: #152367). |
| 4 | |
| 5 | Backported from Debian |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | Index: expect5.45/example/beer.exp |
| 9 | =================================================================== |
| 10 | --- expect5.45.orig/example/beer.exp 2006-01-25 13:51:39.000000000 -0800 |
| 11 | +++ expect5.45/example/beer.exp 2013-11-01 17:35:19.817318341 -0700 |
| 12 | @@ -1,4 +1,9 @@ |
| 13 | -#!/depot/path/expect -f |
| 14 | +#!/bin/sh |
| 15 | +# -*- tcl -*- |
| 16 | +# The next line is executed by /bin/sh, but not tcl \ |
| 17 | +exec tclsh "$0" ${1+"$@"} |
| 18 | + |
| 19 | +package require Expect |
| 20 | |
| 21 | # 99 bottles of beer on the wall, Expect-style |
| 22 | # Author: Don Libes <libes@nist.gov> |
| 23 | Index: expect5.45/example/expectd.proto |
| 24 | =================================================================== |
| 25 | --- expect5.45.orig/example/expectd.proto 2010-07-02 09:03:31.000000000 -0700 |
| 26 | +++ expect5.45/example/expectd.proto 2013-11-01 17:35:19.821318341 -0700 |
| 27 | @@ -1,4 +1,10 @@ |
| 28 | -#!/depot/tcl/src/expect/e -- |
| 29 | +#!/bin/sh |
| 30 | +# -*- tcl -*- |
| 31 | +# The next line is executed by /bin/sh, but not tcl \ |
| 32 | +exec tclsh "$0" ${1+"$@"} |
| 33 | + |
| 34 | +package require Expect |
| 35 | + |
| 36 | # Description: Simple fragment to begin a telnet daemon |
| 37 | # For more information, see Chapter 17 of "Exploring Expect" |
| 38 | # Author: Don Libes, NIST |
| 39 | Index: expect5.45/example/irsh |
| 40 | =================================================================== |
| 41 | --- expect5.45.orig/example/irsh 2010-07-02 09:03:31.000000000 -0700 |
| 42 | +++ expect5.45/example/irsh 2013-11-01 17:35:19.821318341 -0700 |
| 43 | @@ -1,4 +1,9 @@ |
| 44 | -#!/depot/path/expect -- |
| 45 | +#!/bin/sh |
| 46 | +# -*- tcl -*- |
| 47 | +# The next line is executed by /bin/sh, but not tcl \ |
| 48 | +exec tclsh "$0" ${1+"$@"} |
| 49 | + |
| 50 | +package require Expect |
| 51 | |
| 52 | # Do rsh interactively. For example, consider the following command: |
| 53 | # rsh <remote> ls -l "|" more |
| 54 | Index: expect5.45/example/passwd.cgi |
| 55 | =================================================================== |
| 56 | --- expect5.45.orig/example/passwd.cgi 2000-01-06 15:22:07.000000000 -0800 |
| 57 | +++ expect5.45/example/passwd.cgi 2013-11-01 17:35:19.821318341 -0700 |
| 58 | @@ -1,4 +1,9 @@ |
| 59 | -#!/depot/path/expect -- |
| 60 | +#!/bin/sh |
| 61 | +# -*- tcl -*- |
| 62 | +# The next line is executed by /bin/sh, but not tcl \ |
| 63 | +exec tclsh "$0" ${1+"$@"} |
| 64 | + |
| 65 | +package require Expect |
| 66 | |
| 67 | # This is a CGI script to process requests created by the accompanying |
| 68 | # passwd.html form. This script is pretty basic, although it is |
| 69 | Index: expect5.45/example/passwdprompt |
| 70 | =================================================================== |
| 71 | --- expect5.45.orig/example/passwdprompt 2003-09-05 12:01:59.000000000 -0700 |
| 72 | +++ expect5.45/example/passwdprompt 2013-11-01 17:35:19.821318341 -0700 |
| 73 | @@ -1,4 +1,9 @@ |
| 74 | -#!/depot/path/expect |
| 75 | +#!/bin/sh |
| 76 | +# -*- tcl -*- |
| 77 | +# The next line is executed by /bin/sh, but not tcl \ |
| 78 | +exec tclsh "$0" ${1+"$@"} |
| 79 | + |
| 80 | +package require Expect |
| 81 | |
| 82 | # This script prompts for a passwd from stdin while echoing *'s |
| 83 | |
| 84 | Index: expect5.45/example/reprompt |
| 85 | =================================================================== |
| 86 | --- expect5.45.orig/example/reprompt 2000-01-06 15:22:07.000000000 -0800 |
| 87 | +++ expect5.45/example/reprompt 2013-11-01 17:35:19.821318341 -0700 |
| 88 | @@ -1,4 +1,9 @@ |
| 89 | -#!/depot/path/expect -- |
| 90 | +#!/bin/sh |
| 91 | +# -*- tcl -*- |
| 92 | +# The next line is executed by /bin/sh, but not tcl \ |
| 93 | +exec tclsh "$0" ${1+"$@"} |
| 94 | + |
| 95 | +package require Expect |
| 96 | |
| 97 | # Name: reprompt |
| 98 | # Description: reprompt every so often until user enters something |
| 99 | Index: expect5.45/example/term_expect |
| 100 | =================================================================== |
| 101 | --- expect5.45.orig/example/term_expect 2005-02-15 10:11:31.000000000 -0800 |
| 102 | +++ expect5.45/example/term_expect 2013-11-01 17:35:19.821318341 -0700 |
| 103 | @@ -1,4 +1,9 @@ |
| 104 | -#!/depot/path/expectk |
| 105 | +#!/bin/sh |
| 106 | +# -*- tcl -*- |
| 107 | +# The next line is executed by /bin/sh, but not tcl \ |
| 108 | +exec wish "$0" ${1+"$@"} |
| 109 | + |
| 110 | +package require Expect |
| 111 | |
| 112 | # Name: tkterm - terminal emulator using Expect and Tk text widget, v3.0 |
| 113 | # Author: Don Libes, July '94 |
| 114 | Index: expect5.45/example/vrfy |
| 115 | =================================================================== |
| 116 | --- expect5.45.orig/example/vrfy 2010-07-02 09:03:31.000000000 -0700 |
| 117 | +++ expect5.45/example/vrfy 2013-11-01 17:35:19.821318341 -0700 |
| 118 | @@ -1,4 +1,9 @@ |
| 119 | -#!/depot/path/expect -f |
| 120 | +#!/bin/sh |
| 121 | +# -*- tcl -*- |
| 122 | +# The next line is executed by /bin/sh, but not tcl \ |
| 123 | +exec tclsh "$0" ${1+"$@"} |
| 124 | + |
| 125 | +package require Expect |
| 126 | |
| 127 | |
| 128 | # separate address into user and host |
| 129 | Index: expect5.45/example/xrlogin |
| 130 | =================================================================== |
| 131 | --- expect5.45.orig/example/xrlogin 2000-01-06 15:22:08.000000000 -0800 |
| 132 | +++ expect5.45/example/xrlogin 2013-11-01 17:35:19.821318341 -0700 |
| 133 | @@ -1,4 +1,10 @@ |
| 134 | -#!/depot/path/expect -- |
| 135 | +#!/bin/sh |
| 136 | +# -*- tcl -*- |
| 137 | +# The next line is executed by /bin/sh, but not tcl \ |
| 138 | +exec tclsh "$0" ${1+"$@"} |
| 139 | + |
| 140 | +package require Expect |
| 141 | + |
| 142 | # xrlogin - rlogin but with current DISPLAY |
| 143 | # |
| 144 | # You can extend this idea to save any arbitrary information across rlogin |