]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki.in
Added a comment: more info required
[git.ikiwiki.info.git] / ikiwiki.in
index adff1411e8aa715a192f3850a7aef59f4cd04f0b..1327d70e13273f0692ea1b5957063ddaf2a26402 100755 (executable)
@@ -8,7 +8,7 @@ use IkiWiki 3.00;
 
 sub usage () {
        die gettext("usage: ikiwiki [options] source dest"), "\n",
 
 sub usage () {
        die gettext("usage: ikiwiki [options] source dest"), "\n",
-           gettext("       ikiwiki --setup configfile"), "\n";
+           gettext("       ikiwiki --setup my.setup [options]"), "\n";
 }
 
 sub setup (@) {
 }
 
 sub setup (@) {
@@ -108,11 +108,9 @@ sub getconfig () {
                                if (! defined $var || ! defined $val) {
                                        die gettext("usage: --set-yaml var=value"), "\n";
                                }
                                if (! defined $var || ! defined $val) {
                                        die gettext("usage: --set-yaml var=value"), "\n";
                                }
-                               eval q{use YAML::Any};
-                               eval q{use YAML} if $@;
+                               eval q{use YAML::XS; use Encode};
                                die $@ if $@;
                                die $@ if $@;
-                               eval q{$YAML::Syck::ImplicitUnicode=1};
-                               $config{$var}=Load($val."\n");
+                               $config{$var}=Load(encode_utf8($val)."\n");
                        },
                        "version" => sub {
                                print "ikiwiki version $IkiWiki::version\n";
                        },
                        "version" => sub {
                                print "ikiwiki version $IkiWiki::version\n";