Subversion Repositories DevTools

Rev

Rev 4732 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4732 Rev 5872
Line 5... Line 5...
5
#
5
#
6
#   This command is to be executed in the directory in which it is found
6
#   This command is to be executed in the directory in which it is found
7
#
7
#
8
#   Note: This MUST be a UNIX format file, not a DOS formatted file
8
#   Note: This MUST be a UNIX format file, not a DOS formatted file
9
#
9
#
-
 
10
#   The script may be called automatically when the package is released
-
 
11
#   into dpkg_archive. If this is then three arguments will be provided:
-
 
12
#       archive - name of the archive
-
 
13
#       name    - Name of this package
-
 
14
#       version - version of this package
-
 
15
#   This installer will create a symlink in the parent directory to 
-
 
16
#   assist in the timely rollout of a new version of jats.
-
 
17
#       The script will create a symlink from jats2_new to this version
-
 
18
#
-
 
19
#       Every night a cronjob on hte master package server will run to
-
 
20
#       update the jats2_current symlink, from the jats2_new symlink
-
 
21
#   
10
########################################################################
22
########################################################################
11
#
23
#
12
#
24
#
13
#   Sanity test
25
#   Sanity test
14
#
26
#
Line 40... Line 52...
40
for dir in ./BIN.*; do
52
for dir in ./BIN.*; do
41
    if [ -d $dir ] ; then
53
    if [ -d $dir ] ; then
42
        cd $dir
54
        cd $dir
43
        echo Processing links in $dir
55
        echo Processing links in $dir
44
        [ -f ./links.sh ] && sh ./links.sh
56
        [ -f ./links.sh ] && sh ./links.sh
45
        cd -
57
        cd - > /dev/null
46
    fi
58
    fi
47
done
59
done
48
 
60
 
-
 
61
#
-
 
62
#   Possibly - if run by the build system
-
 
63
#       Must have at least 3 args
-
 
64
#       3rd arg must be this version of the package    
-
 
65
#   Create a symlink in the parent diretory to this version
-
 
66
#
-
 
67
if [ $# -ge 3 ]; then
-
 
68
    thisVer=${PWD##*/}
-
 
69
    if [ "$3" = "$thisVer" ] ; then
-
 
70
        echo Creating jats2_new symlink to $thisVer
-
 
71
        pushd .. >/dev/null
-
 
72
        rm -f jats2_new
-
 
73
        ln -s $thisVer jats2_new
-
 
74
        popd >/dev/null
-
 
75
    fi
-
 
76
fi
-
 
77
 
49
echo "JATS setup complete"
78
echo "JATS setup complete"
50
 
79