Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
371 dpurdie 1
#! /bin/bash
243 dpurdie 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
#
371 dpurdie 15
echo "JATS setup"
243 dpurdie 16
if [ ! -d ./TOOLS ] ; then
17
    echo "ERROR: TOOLS directory not found"
18
    exit 1
19
fi
20
 
21
#
22
#   Ensure some essential scripts are not in DOS format
23
#   The TOOLS/*.pl file conversion will ensure that pod2usage() operates
24
#
25
for file in ./TOOLS/armerge ./BIN.*/links.sh $( find ./TOOLS -name *.pl ); do
26
    chmod +w $file
27
    dos2unix -ascii $file $file 2>/dev/null
28
    chmod -w $file
29
done
30
 
31
#
32
#   Make executables executable
33
#
34
chmod -fR a+x ./TOOLS
35
chmod -fR a+x ./BIN.*
36
 
37
#
38
#   Release links for all targets.
39
#
40
for dir in ./BIN.*; do
41
    if [ -d $dir ] ; then
42
        cd $dir
43
	echo Processing links in $dir
44
        [ -f ./links.sh ] && sh ./links.sh
45
        cd -
46
    fi
47
done
48
 
49
echo "JATS setup complete"