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/branches/2.8@16087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8acceb8579
commit
ce5ec17fcd
@ -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