]> git.cworth.org Git - ikiwiki-bootstrap/blobdiff - ikiwiki.setup
Add a BEGIN block so that the gitrepo and checkout variables actually work
[ikiwiki-bootstrap] / ikiwiki.setup
index 180bb8e1b3b69d58c7657cce40dd954c0ff76b03..2e417179b02317a21ddde985f9ab1bf2935744e0 100644 (file)
 # Also, see the destdir and url parameters below which must also be
 # configured before things will work at all.
 
-my gitrepo = '/path/to/bare/git/repo';
-my checkout = "$gitrepo/ikiwiki-checkout";
+our ($gitrepo, $checkout);
+
+BEGIN {
+       $gitrepo = '/path/to/bare/git/repo';
+       $checkout = "$gitrepo/ikiwiki-checkout";
+}
 
 use IkiWiki::Setup::Standard {