diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-01-15 21:33:18 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-01-15 21:33:18 +0000 |
commit | c057937c7b6c9552b96ca4d926820cc973a78295 (patch) | |
tree | d15bd4bf54cedf38370628a5aa9a3cb97673b84e /src/common/weechat.c | |
parent | 938cc50f5eecb2ddbe2be60bd31f821fba27d4bd (diff) | |
download | weechat-c057937c7b6c9552b96ca4d926820cc973a78295.zip |
Create plugin directories only if plugin is built when WeeChat is compiled
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r-- | src/common/weechat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c index 454563aa2..b5ac859f3 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -254,6 +254,7 @@ wee_create_home_dirs () dir_name = (char *) malloc ((strlen (weechat_home) + 64) * sizeof (char)); + #ifdef PLUGIN_PERL /* create "~/.weechat/perl" */ sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "perl"); if (wee_create_dir (dir_name)) @@ -263,7 +264,9 @@ wee_create_home_dirs () DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); } + #endif + #ifdef PLUGIN_PYTHON /* create "~/.weechat/python" */ sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "python"); if (wee_create_dir (dir_name)) @@ -273,7 +276,9 @@ wee_create_home_dirs () DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); } + #endif + #ifdef PLUGIN_RUBY /* create "~/.weechat/ruby" */ sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "ruby"); if (wee_create_dir (dir_name)) @@ -283,6 +288,7 @@ wee_create_home_dirs () DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); } + #endif free (dir_name); } |