~ubuntu-branches/debian/sid/eso-midas/sid

« back to all changes in this revision

Viewing changes to system/unix/cleanmidas

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2015-06-10 14:20:37 UTC
  • mfrom: (1.2.1) (6.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20150610142037-6iowpbtyjrpou36o
Tags: 15.02pl1.3-1
* New upstream version
* Add CI tests
* Move back to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        [ $answer = y ]
55
55
}
56
56
 
57
 
 
58
57
MID_HERE=`pwd`
59
 
MIDVERS=`echo $MID_HERE | sed 's/^.*midas\/\([^\/]*\).*$/\1/'`
60
 
MIDASHOME=`echo $MID_HERE | sed 's/\/'$MIDVERS'.*$//'`
61
 
 
 
58
if [ -z "$MIDVERS" ] ; then
 
59
  MIDVERS=`echo $MID_HERE | sed 's/^.*midas\/\([^\/]*\).*$/\1/'`
 
60
fi
 
61
if [ -z "$MIDASHOME" ] ; then
 
62
  MIDASHOME=`echo $MID_HERE | sed 's/\/'$MIDVERS'.*$//'`
 
63
fi
62
64
MID_HOME=$MIDASHOME/$MIDVERS
63
65
 
64
66
export MIDASHOME MIDVERS