source: branches/publications/ORCHIDEE_2.2_r7266/ORCHIDEE/tools/FCM_V1.2/bin/fcm_setup_konqueror @ 7541

Last change on this file since 7541 was 7541, checked in by fabienne.maignan, 2 years ago
  1. Zhang publication on coupling factor
  • Property svn:executable set to *
File size: 968 bytes
Line 
1#!/usr/bin/ksh
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)
29file=${file%/bin}/etc/$filename
30
31if [[ ! -f $file ]]; then
32  echo "$script: $file not found, abort..." >&2
33  exit 1
34fi
35
36dir=$HOME/.kde/share/applnk/.hidden
37mkdir -p $dir
38cd $dir
39rm -f $filename             # Always remove.
40ln -s $file .
41
42echo "$script: finished"
43
44#EOF
Note: See TracBrowser for help on using the repository browser.