From f42011a49373348507b4faaeef4bf2cab3b39123 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Tue, 7 May 2024 16:43:07 +0200 Subject: [PATCH] Unify shebang lines --- docs/source/developers/guides/code/code_standard.rst | 2 +- perl-xCAT/xCAT/CIMUtils.pm | 2 +- xCAT-IBMhpc/share/xcat/IBMhpc/pe/ckpt.sh | 2 +- xCAT-probe/subcmds/clusterstatus | 2 +- xCAT-probe/subcmds/image | 2 +- xCAT-probe/subcmds/nodecheck | 2 +- xCAT-probe/subcmds/osdeploy | 2 +- xCAT-probe/subcmds/osimagecheck | 2 +- xCAT-probe/subcmds/switch_macmap | 2 +- xCAT-server/sbin/proxydhcp-xcat | 2 +- xCAT-server/share/xcat/tools/detect_dhcpd | 2 +- xCAT-server/share/xcat/tools/xcatstat | 2 +- xCAT-server/xCAT-wsapi/genrestapidoc.pm | 2 +- xCAT-server/xCAT-wsapi/xcatws-test.sh | 2 +- xCAT/postscripts/configbond | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/source/developers/guides/code/code_standard.rst b/docs/source/developers/guides/code/code_standard.rst index ccab7f79a..f703787f2 100644 --- a/docs/source/developers/guides/code/code_standard.rst +++ b/docs/source/developers/guides/code/code_standard.rst @@ -30,7 +30,7 @@ Code Standard Example: :: - #! /usr/bin/perl + #!/usr/bin/perl # This is a perl program example to demo the recommended # style to write perl code diff --git a/perl-xCAT/xCAT/CIMUtils.pm b/perl-xCAT/xCAT/CIMUtils.pm index 749d81ec0..54d66d181 100644 --- a/perl-xCAT/xCAT/CIMUtils.pm +++ b/perl-xCAT/xCAT/CIMUtils.pm @@ -1,4 +1,4 @@ -#! /usr/bin/env perl +#!/usr/bin/env perl # IBM(c) 2014 EPL license http://www.eclipse.org/legal/epl-v10.html # This package offers subroutines to access CIM server diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/ckpt.sh b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/ckpt.sh index f3024fc39..909c18519 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/ckpt.sh +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/ckpt.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Checkpoint/Restart related environment setup diff --git a/xCAT-probe/subcmds/clusterstatus b/xCAT-probe/subcmds/clusterstatus index f04955c3a..3740dd580 100755 --- a/xCAT-probe/subcmds/clusterstatus +++ b/xCAT-probe/subcmds/clusterstatus @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-probe/subcmds/image b/xCAT-probe/subcmds/image index dd9fea9f0..3d78de022 100755 --- a/xCAT-probe/subcmds/image +++ b/xCAT-probe/subcmds/image @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-probe/subcmds/nodecheck b/xCAT-probe/subcmds/nodecheck index 537845d7b..b8ab2b9f6 100755 --- a/xCAT-probe/subcmds/nodecheck +++ b/xCAT-probe/subcmds/nodecheck @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-probe/subcmds/osdeploy b/xCAT-probe/subcmds/osdeploy index a34869a09..acedf9229 100755 --- a/xCAT-probe/subcmds/osdeploy +++ b/xCAT-probe/subcmds/osdeploy @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-probe/subcmds/osimagecheck b/xCAT-probe/subcmds/osimagecheck index 7acfd16a7..0708d6c02 100755 --- a/xCAT-probe/subcmds/osimagecheck +++ b/xCAT-probe/subcmds/osimagecheck @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-probe/subcmds/switch_macmap b/xCAT-probe/subcmds/switch_macmap index ef4db81bc..97e8f23a5 100755 --- a/xCAT-probe/subcmds/switch_macmap +++ b/xCAT-probe/subcmds/switch_macmap @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2016 EPL license http://www.eclipse.org/legal/epl-v10.html BEGIN { $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : -d '/opt/xcat' ? '/opt/xcat' : '/usr'; } diff --git a/xCAT-server/sbin/proxydhcp-xcat b/xCAT-server/sbin/proxydhcp-xcat index f3c9ea297..a37f27259 100755 --- a/xCAT-server/sbin/proxydhcp-xcat +++ b/xCAT-server/sbin/proxydhcp-xcat @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html # This program will start a proxydhcp daemon to handle 4011 request diff --git a/xCAT-server/share/xcat/tools/detect_dhcpd b/xCAT-server/share/xcat/tools/detect_dhcpd index 7003dc297..a92c3c5f7 100755 --- a/xCAT-server/share/xcat/tools/detect_dhcpd +++ b/xCAT-server/share/xcat/tools/detect_dhcpd @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl use IO::Socket::INET; use Time::HiRes qw(gettimeofday sleep); use Getopt::Long; diff --git a/xCAT-server/share/xcat/tools/xcatstat b/xCAT-server/share/xcat/tools/xcatstat index 75b0dbf90..56304b607 100755 --- a/xCAT-server/share/xcat/tools/xcatstat +++ b/xCAT-server/share/xcat/tools/xcatstat @@ -1,4 +1,4 @@ -#! /usr/bin/env perl +#!/usr/bin/env perl # This script calls xCAT command 'nodestat' and 'xdsh' to # implement a status monitoring tool like CSM command 'csmstat diff --git a/xCAT-server/xCAT-wsapi/genrestapidoc.pm b/xCAT-server/xCAT-wsapi/genrestapidoc.pm index eb01e9019..65b8955e8 100644 --- a/xCAT-server/xCAT-wsapi/genrestapidoc.pm +++ b/xCAT-server/xCAT-wsapi/genrestapidoc.pm @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#!/usr/bin/perl package genrestapidoc; diff --git a/xCAT-server/xCAT-wsapi/xcatws-test.sh b/xCAT-server/xCAT-wsapi/xcatws-test.sh index 246c5743c..47d070218 100755 --- a/xCAT-server/xCAT-wsapi/xcatws-test.sh +++ b/xCAT-server/xCAT-wsapi/xcatws-test.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh # Get all the parameters diff --git a/xCAT/postscripts/configbond b/xCAT/postscripts/configbond index 9903b9902..af5a921e8 100755 --- a/xCAT/postscripts/configbond +++ b/xCAT/postscripts/configbond @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # IBM(c) 2014 EPL license http://www.eclipse.org/legal/epl-v10.html # Usage: