Helper scripts for automatically updating git repos
Getty Ritter
9 years ago
| 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"
|