File: bug.script.in

package info (click to toggle)
mailcrypt 3.5.9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,252 kB
  • ctags: 624
  • sloc: lisp: 5,382; python: 1,170; makefile: 215; sh: 172
file content (59 lines) | stat: -rw-r--r-- 1,637 bytes parent folder | download | duplicates (3)
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
#include "variables"
#! /bin/bash -e
#
# bug reporting script for <:=${PACKAGE}:>
#
<:=@COPYRIGHT:>//

set -o posix

cat >&3 <<EOF
========================================================================
Content of '<:=${lisp}:>'
------------------------------------------------------------------------
EOF
find 2>/dev/null <:=${lisp}:> -type f -print0 \
    | xargs --null --no-run-if-empty md5sum | sort --key=2,2 >&3
cat >&3 <<EOF
------------------------------------------------------------------------
EOF

<:# Default flavors: only GNU/Emacsen, XEmacs comes with its own Mailcrypt.:>//
FLAVORS=${*:-"emacs21 emacs22 emacs23 emacs-snapshot"}

for FLAVOR in ${FLAVORS}; do
    if [ -x /usr/bin/${FLAVOR} ]; then
	cat >&3 <<EOF
Content of '<:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>'
------------------------------------------------------------------------
EOF
	command ls >&3 --almost-all --sort=version --format=long \
	    <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>
	LOG=$(ls <:=if($_=${lisp})=~s|emacs|\${FLAVOR}|:>/<:=${ELCLOG}:>*)
	cat >&3 <<EOF
------------------------------------------------------------------------
Content of '${LOG}':
------------------------------------------------------------------------
EOF
	case ${LOG} in
	    (*.gz) zcat >&3 ${LOG} ;;
	    (*) cat >&3 ${LOG} ;;
	esac
	cat >&3 <<EOF
========================================================================
EOF
    fi
done

<:
# arch-tag: dd9ae462-97f1-4931-b52a-141c3215354b
#
# local variables:
# mode: shell-script
# coding: utf-8
# ispell-local-dictionary: "american"
# ispell-check-comments: exclusive
# end:
#
# LocalWords:  Emacsen Mailcrypt
:>//