Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
9b000d3c
Commit
9b000d3c
authored
7 years ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Fixed descriptive message for cpexp; fixed error handling for rmexp, cpexp, diffexp; minor edits
parent
ffa7b67b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES.txt
+2
-1
2 additions, 1 deletion
CHANGES.txt
cpexp
+4
-3
4 additions, 3 deletions
cpexp
diffexp
+4
-2
4 additions, 2 deletions
diffexp
rmexp
+3
-1
3 additions, 1 deletion
rmexp
with
13 additions
and
7 deletions
CHANGES.txt
+
2
−
1
View file @
9b000d3c
...
...
@@ -12,7 +12,8 @@ Release 1.0.0
Global
------
* Fixed descriptive message for getexp
* Fixed error handling for rmexp, cpexp, diffexp; minor edits
* Fixed descriptive message for getexp, cpexp
* Added --version option to mkexp
* Changed rmexp to remove empty parent directories
* Changed rmexp to remove monitoring data
...
...
This diff is collapsed.
Click to expand it.
cpexp
+
4
−
3
View file @
9b000d3c
...
...
@@ -15,16 +15,17 @@ die () {
}
[
"x
$2
"
=
x
]
&&
die
"Oops: invalid number of parameters
Usage:
$PROGRAM
config_
a
new_exp_id [key=value...]"
Usage:
$PROGRAM
config_
file
new_exp_id [key=value...]"
CONFIG_A
=
$1
EXP_B
=
$2
shift
;
shift
eval
`
getexp
-v
"
$CONFIG_A
"
"
$@
"
||
echo
\;
exit
$?
`
eval
`
getexp
-v
"
$CONFIG_A
"
"
$@
"
||
echo
'
'
exit
$?
`
EXP_A
=
$EXP_ID
set
$SCRIPT_DIR
$WORK_DIR
$RESTART_DIR
$DATA_DIR
$LOG_DIR
$MON_DIR
/
$EXP_A
### $MON_DIR/index.html
set
$SCRIPT_DIR
$WORK_DIR
$RESTART_DIR
$DATA_DIR
$LOG_DIR
$MON_DIR
/
$EXP_A
### $MON_DIR/index.html
for
PATH_A
do
cppath
"
$EXP_A
"
"
$EXP_B
"
"
$PATH_A
"
...
...
This diff is collapsed.
Click to expand it.
diffexp
+
4
−
2
View file @
9b000d3c
...
...
@@ -21,11 +21,13 @@ CONFIG_A=$1
CONFIG_B
=
$2
shift
;
shift
eval
`
getexp
"
$CONFIG_A
"
"
$@
"
||
echo
\;
exit
$?
`
eval
`
getexp
"
$CONFIG_A
"
"
$@
"
||
echo
'
'
exit
$?
`
EXP_A
=
$EXP_ID
PATH_A
=
$SCRIPT_DIR
eval
`
getexp
"
$CONFIG_B
"
"
$@
"
||
echo
\;
exit
$?
`
eval
`
getexp
"
$CONFIG_B
"
"
$@
"
||
echo
'
'
exit
$?
`
EXP_B
=
$EXP_ID
PATH_B
=
$SCRIPT_DIR
...
...
This diff is collapsed.
Click to expand it.
rmexp
+
3
−
1
View file @
9b000d3c
...
...
@@ -20,7 +20,8 @@ Usage: $PROGRAM config_file [key=value...]"
CONFIG
=
$1
shift
eval
`
getexp
-v
"
$CONFIG
"
"
$@
"
||
echo
\;
exit
$?
`
eval
`
getexp
-v
"
$CONFIG
"
"
$@
"
||
echo
'
'
exit
$?
`
ask_and_remove
()
{
label
=
"
$1
"
...
...
@@ -51,3 +52,4 @@ ask_and_remove script $SCRIPT_DIR
ask_and_remove log
$LOG_DIR
ask_and_remove data
$DATA_DIR
ask_and_remove monitoring
$MON_DIR
/
$EXP_ID
### $MON_DIR/index.html
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment