Skip to content
Snippets Groups Projects
Commit fd89ef9d authored by tjc's avatar tjc
Browse files

fix for /nfs/repository

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@1872 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 1ba5945f
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,21 @@ else
new_file=$file_arg.$unique_bit.html
fi
###
# sanger fix for /nfs/repository which isn't mounted on workstations:
REPOSITORY=`echo $new_file | sed -n -e 's|^\/nfs\/repository\/\(.*\)\(\/\)\(.*\)$|\3|p'`
if [ "$REPOSITORY" != "" ]; then
if [ ! -d $HOME/artemis_tmp ]; then
mkdir $HOME/artemis_tmp
fi
new_file="$HOME/artemis_tmp/$REPOSITORY"
fi
#
###
cat <<EOF > $new_file
<HTML>
<HEAD>
......@@ -190,14 +205,14 @@ cat <<EOF >> $new_file;
EOF
# delete it at some point
echo "rm -f $new_file > /dev/null 2>&1" | at now + 36 hours
echo "rm -f $new_file > /dev/null 2>&1" | at now + 12 hours
# MAC OS X => Safari browser
# The command then is the following
# if $NETSCAPE $new_file
# For Netscape or mozilla
if $NETSCAPE -remote "openURL($new_file)"
if $NETSCAPE -remote "openURL($new_file, new-tab)"
then
exit 0
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment