1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Create plugin directories only if plugin is built when WeeChat is compiled

This commit is contained in:
Sebastien Helleu
2004-01-15 21:33:18 +00:00
parent 938cc50f5e
commit c057937c7b
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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);
}
+6
View File
@@ -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);
}