File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ commit-o-matic
4
4
A simple script that commit and add new version message for you.
5
5
6
6
```
7
- Useage :
7
+ Usage :
8
8
9
- commit-o-matic PACKAGE_GROUPS
10
-
11
- - PACKAGE_GROUPS: Path to the list of packages. (Example: TREE/groups/plasma)
9
+ commit-o-matic PACKAGE_GROUP TYPE [MESSAGE]
12
10
11
+ - PACKAGE_GROUP: Path to the list of packages to be committed.
12
+ (Example: TREE/groups/plasma)
13
+ - TYPE: type of the desired operation (new, update, or bump-rel)
14
+ - [MESSAGE]: if TYPE=bump-rel, you need to specify why. Input reason here.
13
15
```
14
16
15
17
> No Buckling Spring Keyboards Were Harmed in the Making of This Script.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
_help_message () {
3
3
printf " \
4
- Useage :
4
+ Usage :
5
5
6
6
commit-o-matic PACKAGE_GROUP TYPE [MESSAGE]
7
7
8
8
- PACKAGE_GROUP: Path to the list of packages to be committed.
9
9
(Example: TREE/groups/plasma)
10
- - TYPE: type of the desired operation (update or bump-rel)
10
+ - TYPE: type of the desired operation (new, update, or bump-rel)
11
11
- [MESSAGE]: if TYPE=bump-rel, you need to specify why. Input reason here.
12
12
13
13
"
@@ -36,6 +36,11 @@ if [[ $2 == "update" ]]; then
36
36
git add --all $i
37
37
git commit -m " ${i##*/ } : update to $( grep " VER=" $i /spec | cut -d " =" -f2) "
38
38
done
39
+ elif [[ $2 == " new" ]]; then
40
+ for i in $( cat $1 ) ; do
41
+ git add --all $i
42
+ git commit -m " ${i##*/ } : new, $( grep " VER=" $i /spec | cut -d " =" -f2) "
43
+ done
39
44
elif [[ $2 == " bump-rel" ]]; then
40
45
if [ -z " $3 " ]; then
41
46
echo -e " [!!!] Need a reason for revision."
You can’t perform that action at this time.
0 commit comments