Blame | Last modification | View Log | RSS feed
#! /bin/bash########################################################################## jats-installer Post Installation## This command is to be executed in the directory in which it is found## Note: This MUST be a UNIX format file, not a DOS formatted file## The script may be called automatically when the package is released# into dpkg_archive. If this is then three arguments will be provided:# archive - name of the archive# name - Name of this package# version - version of this package# This installer will create a symlink in the parent directory to# assist in the timely rollout of a new version of jats-installre.# The script will create a symlink from current to this version############################################################################ Sanity test## If run by the build system# Must have at least 3 args# 3rd arg must be this version of the package# Create a symlink in the parent diretory to this version#if [ $# -ge 3 ]; thenthisVer=${PWD##*/}if [ "$3" = "$thisVer" ] ; thenecho "Creating current symlink to $thisVer"pushd .. >/dev/nullrm -f currentln -s $thisVer currentpopd >/dev/nullfifiecho "jats-installer PostInstall Complete"