X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/227107b21864dedb40995875c6a68c1a2a665f9a..598240826f0de7544dabccc460bef937cf3162cb:/ikiwiki-makerepo diff --git a/ikiwiki-makerepo b/ikiwiki-makerepo index 6ae3e28a3..b733bd13a 100755 --- a/ikiwiki-makerepo +++ b/ikiwiki-makerepo @@ -4,7 +4,7 @@ set -e rcs="$1" srcdir="$2" repository="$3" - + usage () { echo "usage: ikiwiki-makerepo svn|git srcdir repository" >&2 echo " ikiwiki-makerepo bzr|mercurial srcdir" >&2 @@ -21,6 +21,10 @@ if [ ! -d "$srcdir" ]; then fi if [ "$rcs" != mercurial ] && [ "$rcs" != bzr ]; then + if [ -z "$repository" ]; then + echo "you need to specify both a srcdir and a repository for $rcs" >&2 + usage + fi if [ -e "$repository" ]; then echo "repository $repository already exists, aborting" >&2 exit 1 @@ -58,6 +62,7 @@ git) cd "$srcdir" git init echo /.ikiwiki > .gitignore + echo /recentchanges >> .gitignore git add . git commit -m "initial commit" git remote add origin "$repository"