-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditcfg
executable file
·45 lines (38 loc) · 1.55 KB
/
editcfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
############################################################################
# Copyright (c) 2011-2013 Saint-Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################
if [ "$EDITOR" = "" ] ; then
EDITOR=`git config --get core.editor`
fi
if [ "$EDITOR" = "" ] ; then
EDITOR="vi"
fi
if [ $# = 0 ]
then
set $1 'c'
fi
case $1 in
'c') cfg="configs/debruijn/config.info" ;;
'ct') cfg="configs/debruijn/config.info.template" ;;
's') cfg="configs/debruijn/simplification.info" ;;
'st') cfg="configs/debruijn/simplification.info.template" ;;
'de') cfg="configs/debruijn/distance_estimation.info";;
'det') cfg="configs/debruijn/distance_estimation.info.template";;
'd') cfg="configs/debruijn/deprecated_datasets.info" ;;
'da') cfg="configs/debruijn/deprecated_datasets_archive.info" ;;
'dip') cfg="configs/debruijn/detail_info_printer.info";;
'dipt') cfg="configs/debruijn/detail_info_printer.info.template";;
'log') cfg="configs/debruijn/log.properties";;
'logt') cfg="configs/debruijn/log.properties.template";;
'pe') cfg="configs/debruijn/path_extend/pe_config.info";;
'pet') cfg="configs/debruijn/path_extend/pe_config.info.template";;
'con') cfg="configs/debruijn/construction.info";;
'cont') cfg="configs/debruijn/construction.info.template";;
'ds') cfg="configs/dipspades/config.info";;
'dst') cfg="configs/dipspades/config.info.template";;
'logds') cfg="configs/dipspades/log.properties";;
esac
$EDITOR $cfg