This file is indexed.

/usr/bin/aebuffy is in aegis-tk 4.24.3-3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/bin/sh
#-*-tcl-*-
#	aegis - project change supervisor
#	Copyright (C) 2001, 2006-2008 Peter Miller
#
#	This program is free software; you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation; either version 3 of the License, or
#	(at your option) any later version.
#
#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with this program. If not, see
#	<http://www.gnu.org/licenses/>.
#
# comments wrap in Tcl, but not in sh \
exec wish $0 -- ${1+"$@"}

set bindir /usr/bin
set libdir /usr/share/aegis
set datadir /usr/share/aegis
set datarootdir /usr/share/aegis

frame .frame
scrollbar .frame.scroll -command ".frame.blurb yview"
pack .frame.scroll -side right -fill y
text .frame.blurb \
	-borderwidth 0 \
	-width 50 \
	-height 6 \
	-wrap none \
	-background white \
	-yscrollcommand ".frame.scroll set"
pack .frame.blurb -side left -fill both -expand 1
pack .frame -expand 1 -fill both

bind . <q> {
    exit
}


proc doubleClick { state project change_number } {
    global bindir
    if { $state != "completed" && $state != "awaiting_development" } {
	being_reviewed {
	    eval "exec $bindir/tkaer -p $project -c $change_number &"
	}
    }
}

proc readPipe { command errok } {
	set data ""
	set fd [open $command r]
	if { $fd != "" } {
		set data [read $fd]
		set codevar ""
		catch { close $fd } codevar
		if { $codevar != "" && !$errok } {
		    puts [format "Command \"%s\"\nreturned \"%s\"" \
			    $command $codevar]
		    exit 1
		}
	}
	return [string trim $data]
}

proc processCommandLine { } {
    global argc argv argv0
    global projectName

    set argindex 0
    set projectName ""

    # Loop through argv seeing and try to guess at what the user wants to do.
    while {$argindex < $argc} {
	set arg [lindex $argv $argindex]
	switch -regexp -- $arg {
	    "^-p$" {
		incr argindex
		set projectName [lindex $argv $argindex]
	    }
	    "^-p.*" {
		set projectName [string range $arg 2 end]
	    }
	    default {
		set projectName [lindex $argv $argindex]
	    }
	}
	incr argindex
    }

    # If the user did not specify or we couldn't grok, then ask Aegis.
    # to fill in the gaps.

    if { $projectName == "" } {
	# Set the projectName variable.  We need to ask Aegis for this,
	# so that we get what *aegis* thinks is the default project name.
	set projectName [readPipe "|aegis -list default_project" 1]
	if { $projectName == "" } {
	    puts [format "\n%s couldn't determine the project name\n" $argv0]
	    exit 1
	}
    }
}

proc updateBlurb { } {
global datadir projectName
catch {
    set fileId [open \
	"|aereport -f $datadir/wish/aebuffy.rpt -pw=2000 -unf -p $projectName"\
	"r"]
    eval [read $fileId]
    close $fileId
} { }
update
after 60000 "updateBlurb"
}

processCommandLine
set title [format "aebuffy - \"%s\"" $projectName]
wm title . $title
wm iconname . $title
updateBlurb