Skip to content

Commit 155dc9e

Browse files
committed
Docs
1 parent d610048 commit 155dc9e

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

commands/add

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ if [ "$#" -ne 3 ] || [ ! -d .git ] || [[ ! "$KIND" =~ ^(requires|equipment)$ ]];
1313
Usage: $CMD [requires|equipment] url branch
1414
1515
Adds a new cppsm compatible submodule and recursively the submodules it requires
16-
to the project.
17-
18-
This command is idempotent and can be run to e.g. add new transitive
19-
dependencies after updating submodules.
16+
to the project. This command is idempotent and can be run to e.g. add new
17+
transitive dependencies after updating submodules.
2018
EOF
2119
exit 1
2220
fi

commands/init

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ if [ "$#" -ne 0 ] || [ ! -d .git ]; then
99
Usage: $CMD
1010
1111
Initializes a new C++ project with cppsm configuration files or updates an
12-
existing project to use the latest configuration files.
13-
14-
Run $CMD in the top-level directory of a fresh git project.
12+
existing project to use the latest configuration files. Run $CMD in the
13+
top-level directory of a fresh git project.
1514
EOF
1615
exit 1
1716
fi

commands/list

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ if [ "$#" -ne 0 ] || [ ! -e .gitmodules ] ; then
88
cat << EOF
99
Usage: $CMD
1010
11-
Prints out a dependency tree of submodules.
12-
13-
This command exits with an error code in case any problems are found in the
14-
dependency tree.
11+
Prints out a dependency tree of submodules. This command exits with an error
12+
code in case any problems are found in the dependency tree.
1513
EOF
1614
exit 1
1715
fi

commands/remove

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ if [ "$#" -ne 1 ] || [ ! -d "$SUBMODULE" ] ; then
1010
cat << EOF
1111
Usage: $CMD path
1212
13-
Removes a previously required submodule.
14-
15-
Note that this command does remove submodules transitively.
13+
Removes a previously required submodule. Note that this command does not remove
14+
submodules transitively.
1615
EOF
1716
exit 1
1817
fi

commands/upgrade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ if [ "$#" -ne 0 ] || [ ! -e .gitmodules ] ; then
88
cat << EOF
99
Usage: $CMD
1010
11-
Upgrades all cppsm managed submodules to latest remote versions and runs init to
12-
update configuration files.
11+
Upgrades all cppsm managed submodules to latest remote versions and runs cppsm
12+
init to update configuration files.
1313
EOF
1414
exit 1
1515
fi

0 commit comments

Comments
 (0)