Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TRACY3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Optics
TRACY3
Commits
11645c56
Commit
11645c56
authored
14 years ago
by
nadolski
Browse files
Options
Downloads
Patches
Plain Diff
Improvement
parent
7009f839
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tracy/tools/checkcode.sh
+52
-8
52 additions, 8 deletions
tracy/tools/checkcode.sh
with
52 additions
and
8 deletions
tracy/tools/checkcode.sh
+
52
−
8
View file @
11645c56
#!/bin/sh
#!/bin/
ba
sh
if
[
$#
-ne
1
]
then
# affiche l'usage
echo
"Missing parameter"
echo
"Use:
$0
diff for comparing result"
echo
"Use:
$0
compute for computing result"
exit
1
fi
if
[
$1
==
"help"
]
||
[
$1
==
"--help"
]
then
echo
"Use:
$0
diff for comparing result"
echo
"Use:
$0
compute for computing result"
exit
1
fi
if
[
$1
!=
"help"
]
&&
[
$1
!=
"--help"
]
&&
[
$1
!=
"compute"
]
&&
[
$1
!=
"diff"
]
then
echo
"Wrong Parameter"
echo
"Use:
$0
diff for comparing result"
echo
"Use:
$0
compute for computing result"
exit
1
fi
# compute and save result in _new
if
[
$1
==
"compute"
]
then
soltracy Input_checkcode.prm
soltracy Input_checkcode.prm
mv
nudx.out nudx_new.out
mv
nudz.out nudz_new.out
CMD
=
'mv'
mv
nudp.out nudp_new.out
mv
flat_file_error.dat flat_file_error_new.dat
$CMD
nudx.out nudx_new.out
mv
linlat.out linlat_new.out
$CMD
nudz.out nudz_new.out
mv
chambre.out chambre_new.out
$CMD
nudp.out nudp_new.out
mv
flat_file.dat flat_file_new.dat
$CMD
flat_file_error.dat flat_file_error_new.dat
\ No newline at end of file
$CMD
linlat.out linlat_new.out
$CMD
chambre.out chambre_new.out
$CMD
flat_file.dat flat_file_new.dat
fi
if
[
$1
==
"diff"
]
then
CMD
=
'diff'
$CMD
nudx_ref.out nudx_new.out
$CMD
nudz_ref.out nudz_new.out
$CMD
nudp_ref.out nudp_new.out
$CMD
flat_file_error_ref.dat flat_file_error_new.dat
$CMD
linlat_ref.out linlat_new.out
$CMD
chambre_ref.out chambre_new.out
$CMD
flat_file_ref.dat flat_file_new.dat
fi
\ No newline at end of file
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