[NEW] mkgit-nofxwiki.net to publish the git repo in PWD to nofxwiki.net.

This commit is contained in:
Sami Samhuri 2009-11-19 17:05:53 -08:00
parent e17c46652c
commit 222aca1b21
2 changed files with 11 additions and 0 deletions

View file

@ -4,6 +4,11 @@ cd "$HOME"
for FILE in config/*; do for FILE in config/*; do
pushd "$HOME" pushd "$HOME"
DOTFILE=".${FILE##*/}" DOTFILE=".${FILE##*/}"
if [[ -e "$DOTFILE" ]]; then
mkdir original-dot-files >/dev/null 2>/dev/null
echo "Existing file found at $DOTFILE, moving to ~/original-dot-files."
mv "$DOTFILE" original-dot-files/
fi
ln -s "$FILE" "$DOTFILE" ln -s "$FILE" "$DOTFILE"
popd popd
done done

6
mkgit-nofxwiki.net Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
ssh nofxwiki.net "/home/sjs/bin/mkgit $1"
git remote add -m master origin ssh://nofxwiki.net/var/git/$1.git
git config branch.master.merge refs/heads/master
git push origin master