Parcourir la source

Helper scripts for automatically updating git repos

Getty Ritter il y a 9 ans
Parent
commit
1c3d0c2852

+ 5 - 0
scripts/git-add-untracked-sources

@@ -0,0 +1,5 @@
+#!/bin/bash -e
+
+if [[ $# -eq 1 ]]; then cd $1; fi
+
+git add $(git ls-untracked-sources)

+ 7 - 0
scripts/git-ls-untracked-sources

@@ -0,0 +1,7 @@
+#!/bin/bash -e
+
+if [[ $# -eq 1 ]]; then cd $1; fi
+
+for f in $(git ls-files --others --exclude-standard); do
+    if [[ ! -x "$f" ]]; then echo $f; fi
+done

+ 8 - 0
scripts/git-update-all

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+if [[ $# -eq 1 ]]; then cd $1; fi
+
+REPO=$(basename $(pwd))
+TIME=$(date -Iseconds)
+git add-untracked-sources
+git commit -a -m "Updates for $REPO at $TIME"