Subversion Repositories DevTools

Rev

Rev 371 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
243 dpurdie 1
#! /usr/bin/bash
2
########################################################################
3
#
4
#   JATS Post Installation Setup for SOLARIS/LINUX
5
#
6
#   This command is to be executed in the directory in which it is found
7
#
8
#   Note: This MUST be a UNIX format file, not a DOS formatted file
9
#
10
########################################################################
11
#
12
#
13
#   Sanity test
14
#
15
if [ ! -d ./TOOLS ] ; then
16
    echo "ERROR: TOOLS directory not found"
17
    exit 1
18
fi
19
 
20
#
21
#   Ensure some essential scripts are not in DOS format
22
#   The TOOLS/*.pl file conversion will ensure that pod2usage() operates
23
#
24
for file in ./TOOLS/armerge ./BIN.*/links.sh $( find ./TOOLS -name *.pl ); do
25
    chmod +w $file
26
    dos2unix -ascii $file $file 2>/dev/null
27
    chmod -w $file
28
done
29
 
30
#
31
#   Make executables executable
32
#
33
chmod -fR a+x ./TOOLS
34
chmod -fR a+x ./BIN.*
35
 
36
#
37
#   Release links for all targets.
38
#
39
for dir in ./BIN.*; do
40
    if [ -d $dir ] ; then
41
        cd $dir
42
	echo Processing links in $dir
43
        [ -f ./links.sh ] && sh ./links.sh
44
        cd -
45
    fi
46
done
47
 
48
echo "JATS setup complete"