source: SH_SHM/branches/2011.2/setup/plugin_delete.csh @ 376

Revision 16, 622 bytes checked in by marcus, 14 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

  • Property svn:executable set to *
Line 
1#! /bin/csh
2#
3# file plugin_delete.csh
4#      =================
5#
6# version 1, 25-Nov-2003
7#
8# Deletes plugin from menu
9# K. Stammler, 25-Nov-2003
10
11# get number from command line or prompt
12set posnum=$1
13
14if  ("$posnum" == "")  then
15        echo -n "Enter position number: "
16        set posnum="$<"
17endif
18
19# set constants
20set setup=$SH_USERROOT/private/plugins.txt
21if  (! -e $setup)  set setup=$SH_USERROOT/private/external_processes.txt
22
23if  ($posnum < 1 || $posnum > 20)  then
24        echo "Illegal menu position number.  Abort."
25        exit
26endif
27
28if  (-e $setup.x)  \rm $setup.x
29grep -v " $posnum " $setup >$setup.x
30\rm $setup
31mv $setup.x $setup
Note: See TracBrowser for help on using the repository browser.