From ce5ec17fcdff4107548e4edca27d02705b7a5a1d Mon Sep 17 00:00:00 2001 From: willn256 Date: Fri, 26 Apr 2013 22:27:54 +0000 Subject: [PATCH] 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 --- xCAT-buildkit/bin/buildkit | 6 +++++- .../xcat/kits/kit_template/plugins/sample/imageprofile.pm | 1 + .../share/xcat/kits/kit_template/plugins/sample/nodemgmt.pm | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 340ed7d56..fdfeaff47 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -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"; diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm index 87307b132..212aa60e6 100644 --- a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm +++ b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/imageprofile.pm @@ -742,3 +742,4 @@ sub parse_list_arg { } +1; \ No newline at end of file diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/nodemgmt.pm b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/nodemgmt.pm index e8392efe4..99af010f1 100644 --- a/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/nodemgmt.pm +++ b/xCAT-buildkit/share/xcat/kits/kit_template/plugins/sample/nodemgmt.pm @@ -392,3 +392,4 @@ sub kitnoderefresh { # } +1; \ No newline at end of file