New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
fcm_setup_konqueror in branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/EXTERNAL/fcm/bin – NEMO

source: branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/EXTERNAL/fcm/bin/fcm_setup_konqueror @ 9496

Last change on this file since 9496 was 9496, checked in by davestorkey, 6 years ago

UKMO/branches/dev_merge_2017_restart_datestamp_GO6_mixing : clear SVN keywords.

File size: 1018 bytes
Line 
1#!/bin/sh
2# ------------------------------------------------------------------------------
3# NAME
4#   fcm_setup_konqueror
5#
6# SYNOPSIS
7#   fcm_setup_konqueror
8#
9# DESCRIPTION
10#   Set up Konqueror to use "fcm gui".
11#
12# COPYRIGHT
13#   (C) Crown copyright Met Office. All rights reserved.
14#   For further details please refer to the file COPYRIGHT.txt
15#   which you should have received as part of this distribution.
16# ------------------------------------------------------------------------------
17
18# Check number of arguments
19script=`basename $0`
20usage="$script: no argument required"
21if (( $# != 0 )); then
22  echo "$usage, abort..." >&2
23  exit 1
24fi
25
26filename=fcm_gui.desktop
27
28file=`dirname $0`
29if [[ `basename $file` = bin ]]; then
30  file=`dirname $file`
31fi
32file=$file/etc/$filename
33
34if [[ ! -f $file ]]; then
35  echo "$script: $file not found, abort..." >&2
36  exit 1
37fi
38
39dir=$HOME/.kde/share/applnk/.hidden
40mkdir -p $dir
41cd $dir
42rm -f $filename             # Always remove.
43ln -s $file .
44
45echo "$script: finished"
46
47#EOF
Note: See TracBrowser for help on using the repository browser.