blob: 0d53c18a7917f0e53588ef7f6228942e9e0f147f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
if [[ ! -d .git ]]; then
echo "This script can only be run from a top level git directory. Exiting..."
exit 1
fi
echo "Preparing $PWD for development use"
if [[ $1 == "" ]]; then
read -p "Enter your TDE GIT username []: " -e gituser
else
gituser=$1
fi
if [[ $gituser == "" ]]; then
gituser="anonymous"
fi
read -p "Enter your commit message []: " -e commitmessage
git submodule foreach "git commit -a -m \'$commitmessage\'"
git submodule foreach "sed -i \'s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g\' .git/config"
git submodule foreach "git push origin master"
|