forked from annotation/text-fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manageapps.sh
executable file
·43 lines (38 loc) · 868 Bytes
/
manageapps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Create a nnew branch, commit all changes to that branch
# and push the branch to GitHub.
# Do this for all TF-apps.
# branch v8dev
annotationdir=~/github/annotation
if [[ "$1" == "" ]]; then
echo "Provide a branch and a commit message"
exit
else
branch="$1"
shift
fi
if [[ "$1" == "" ]]; then
echo "Provide a commit message"
exit
else
msg="$1"
shift
fi
cd $annotationdir
echo "All apps: commit changes to branch '$branch' and push to GitHub"
for app in `ls -d app-*` tutorials
# for app in `ls -d app-*`
do
echo "o-o-o [$app] o-o-o"
cd $annotationdir/$app
git add --all .
git commit -m "$msg"
git push origin master
# git checkout master
# git merge "$branch"
# git checkout -b "$branch"
# git add --all .
# git commit -m "$msg"
# git push origin "$branch"
done
echo "done"