gdritter repos GRUtils / 1c3d0c2
Helper scripts for automatically updating git repos Getty Ritter 9 years ago
3 changed file(s) with 20 addition(s) and 0 deletion(s). Collapse all Expand all
1 #!/bin/bash -e
2
3 if [[ $# -eq 1 ]]; then cd $1; fi
4
5 git add $(git ls-untracked-sources)
1 #!/bin/bash -e
2
3 if [[ $# -eq 1 ]]; then cd $1; fi
4
5 for f in $(git ls-files --others --exclude-standard); do
6 if [[ ! -x "$f" ]]; then echo $f; fi
7 done
1 #!/bin/bash -e
2
3 if [[ $# -eq 1 ]]; then cd $1; fi
4
5 REPO=$(basename $(pwd))
6 TIME=$(date -Iseconds)
7 git add-untracked-sources
8 git commit -a -m "Updates for $REPO at $TIME"