put monotone dir name munging code in auto.setup
conceptually cleaner to do it this waymaster
parent
ae45223b31
commit
577477e1ce
|
@ -28,7 +28,7 @@ IkiWiki::Setup::Automator->import(
|
|||
rcs => $rcs,
|
||||
srcdir => "$ENV{HOME}/$wikiname",
|
||||
destdir => "$ENV{HOME}/public_html/$wikiname",
|
||||
repository => "$ENV{HOME}/$wikiname.$rcs",
|
||||
repository => "$ENV{HOME}/$wikiname.".($rcs eq "monotone" ? "mtn" : $rcs),
|
||||
dumpsetup => "$ENV{HOME}/$wikiname.setup",
|
||||
url => "http://$domain/~$ENV{USER}/$wikiname",
|
||||
cgiurl => "http://$domain/~$ENV{USER}/$wikiname/ikiwiki.cgi",
|
||||
|
|
|
@ -94,8 +94,6 @@ monotone)
|
|||
fi
|
||||
|
||||
mkdir -p "$(dirname "$repository")"
|
||||
# fix the repository suffix we get from auto.setup
|
||||
repository="$(echo "$repository" | sed 's/.monotone/.mtn/g')"
|
||||
mtn db init -d "$repository"
|
||||
|
||||
cleaned_srcdir=$(basename "$srcdir" | tr -s "[:space:]" "_" | sed 's/_$//g')
|
||||
|
|
Loading…
Reference in New Issue