Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
f766fbe5
Commit
f766fbe5
authored
17 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
new status command in order to check pending commits/updates
[[Imported from SVN: r4937]]
parent
26306424
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/dunecontrol
+29
-1
29 additions, 1 deletion
bin/dunecontrol
with
29 additions
and
1 deletion
bin/dunecontrol
+
29
−
1
View file @
f766fbe5
...
...
@@ -125,7 +125,7 @@ esac'
}
# list of all dunecontrol commands
COMMANDS
=
"update autogen configure make all exec svn"
COMMANDS
=
"update autogen configure make all exec
status
svn"
# help string for the commands
update_HELP
=
"updated all modules from the repository"
...
...
@@ -136,6 +136,7 @@ make_HELP="run make for each module"
all_HELP
=
"
\t
run 'autogen', 'configure' and 'make' command for each module"
# "NOTE: run all for an initial setup"
exec_HELP
=
"execute an arbitrary command in each module directory"
status_HELP
=
"show vc status for all modules"
svn_HELP
=
"
\t
run svn command for each svn managed module"
#
...
...
@@ -154,6 +155,33 @@ done
run_default_exec
()
{
bash
-c
"eval
$CMD_PARAMS
"
;
}
run_default_status
()
{
# is out output connected to a tty?
if
test
-t
1
;
then
blue
=
"
\e
[1m
\e
[34m"
green
=
"
\e
[1m
\e
[32m"
reset
=
"
\e
[0m
\e
[37m"
fi
if
eval test
"x
$CMD_PARAMS
"
=
"x-v"
;
then
svn status |
grep
-E
"^M|^A|^D"
elif
eval test
"x
$CMD_PARAMS
"
=
"x-vv"
;
then
svn status
fi
count
=
$(
svn status |
grep
-E
"^M|^A|^D"
|
wc
-l
)
name
=
"
$(
eval echo
\$
NAME_
$module
)
"
if
[
$count
=
0
]
;
then
echo
-e
"
$green
[no changes]
$reset
$name
"
elif
[
$count
=
1
]
;
then
echo
-e
"
$blue
[1 change]
$reset
$name
"
else
echo
-e
"
$blue
[
$count
changes]
$reset
$name
"
fi
}
run_default_update
()
{
if
test
-d
.svn
;
then
svn update
...
...
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