Make sample kit plugin modules end with 1; and fix buildkit to rename kit plugin files correctly

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
willn256 2013-04-26 22:28:33 +00:00
parent a21935e9c7
commit ce0fe877db
3 changed files with 7 additions and 1 deletions

View File

@ -2644,7 +2644,11 @@ sub create_builddir
foreach my $plugin (<$::workdir/plugins/*.pm>){
my $plugin_base = basename($plugin);
my $to_plugin = $plugin_dir."/".$kitname."_".$plugin_base;
my $mod_kitname = $kitname;
$mod_kitname =~ s/\-/\_/g;
$mod_kitname =~ s/\./\_/g;
my $to_plugin = $plugin_dir."/".$mod_kitname."_".$plugin_base;
if ( system("cp -fp $plugin $to_plugin") ) {
# non-zero return from system call
print "Error copying plugin file $plugin to build directory $plugin_dir \n";

View File

@ -742,3 +742,4 @@ sub parse_list_arg {
}
1;

View File

@ -392,3 +392,4 @@ sub kitnoderefresh {
#
}
1;