This file is indexed.

/usr/share/xcrysden/scripts/xcLib.sh is in xcrysden-data 1.5.60-1.

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

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
#############################################################################
# Author:                                                                   #
# ------                                                                    #
#  Anton Kokalj                                  Email: Tone.Kokalj@ijs.si  #
#  Department of Physical and Organic Chemistry  Phone: x 386 1 477 3523    #
#  Jozef Stefan Institute                          Fax: x 386 1 477 3811    #
#  Jamova 39, SI-1000 Ljubljana                                             #
#  SLOVENIA                                                                 #
#                                                                           #
# Source: $XCRYSDEN_TOPDIR/scripts/xcLib.sh
# ------                                                                    #
# Copyright (c) 1996-2003 by Anton Kokalj                                   #
#############################################################################

xcSignalHandler () {
    # usage: xcSignalHandler program signal ID
    if [ "$1" = "EnScan" ]; then
	rm -rf EnScan1.$$ EnScan2.$$ EnScan3.$$ EnScan_*.$!
	if [ -f EnSCan22.$$ ]; then
	    rm -f EnScan22.$$
	fi
    fi
    case $2 in
	1)  signal='Hangup (1)';;
	2)  signal='Interupt (2)';;
	3)  signal='Quit (3)';;
	15) signal='Software termination (kill) (15)';;
	*)  signal='Unknown signal (x)';;
    esac
    echo "$1 has received the following signal: $signal"
    kill -15 $!
    if [ -d $XCRYSDEN_SCRATCH/xc_$! ]; then
	echo "Deleting directory: $XCRYSDEN_SCRATCH/xc_$! ..."
	rm -rf $XCRYSDEN_SCRATCH/xc_$!
    fi	    
    if [ -f $XCRYSDEN_SCRATCH/STDIN.$$ ]; then
	echo "Deleting file:      $XCRYSDEN_SCRATCH/STDIN.$$ ..."	
	rm -f $XCRYSDEN_SCRATCH/STDIN.$$
    fi
    if [ -f $PWD/core ]; then
	rm -f core
    fi
    echo "Quit !"
    exit $2
}