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 |
---|
12 | set posnum=$1 |
---|
13 | |
---|
14 | if ("$posnum" == "") then |
---|
15 | echo -n "Enter position number: " |
---|
16 | set posnum="$<" |
---|
17 | endif |
---|
18 | |
---|
19 | # set constants |
---|
20 | set setup=$SH_USERROOT/private/plugins.txt |
---|
21 | if (! -e $setup) set setup=$SH_USERROOT/private/external_processes.txt |
---|
22 | |
---|
23 | if ($posnum < 1 || $posnum > 20) then |
---|
24 | echo "Illegal menu position number. Abort." |
---|
25 | exit |
---|
26 | endif |
---|
27 | |
---|
28 | if (-e $setup.x) \rm $setup.x |
---|
29 | grep -v " $posnum " $setup >$setup.x |
---|
30 | \rm $setup |
---|
31 | mv $setup.x $setup |
---|
Note: See
TracBrowser
for help on using the repository browser.