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:
parent
a21935e9c7
commit
ce0fe877db
@ -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";
|
||||
|
@ -742,3 +742,4 @@ sub parse_list_arg {
|
||||
|
||||
}
|
||||
|
||||
1;
|
@ -392,3 +392,4 @@ sub kitnoderefresh {
|
||||
#
|
||||
}
|
||||
|
||||
1;
|
Loading…
Reference in New Issue
Block a user