From 725726b13b3722cceb2fe2057685a8b3ca998a5e Mon Sep 17 00:00:00 2001 From: Stefan Sicleru Date: Thu, 31 Mar 2016 15:37:32 +0200 Subject: linux/cfg: remove prefix from config fragments Renamed kernel config fragments and provide them with prefix-free file names. Since prefixes are removed, README and associated script were also removed. References were updated within affected files. Signed-off-by: Stefan Sicleru Signed-off-by: Adrian Calianu --- recipes-kernel/linux/files/cfg/indexcfgs.pl | 167 ---------------------------- 1 file changed, 167 deletions(-) delete mode 100755 recipes-kernel/linux/files/cfg/indexcfgs.pl (limited to 'recipes-kernel/linux/files/cfg/indexcfgs.pl') diff --git a/recipes-kernel/linux/files/cfg/indexcfgs.pl b/recipes-kernel/linux/files/cfg/indexcfgs.pl deleted file mode 100755 index 96cd78a..0000000 --- a/recipes-kernel/linux/files/cfg/indexcfgs.pl +++ /dev/null @@ -1,167 +0,0 @@ -#!/usr/bin/perl -w -#---------------------------------------------------------------------- -# indexcfgs.pl - utility to rename files in the current directory to an -# indexed format so that a unique index number is -# prepended to the current file name. The naming -# template is: -# -# DDDDD- -# -# Usage: create the *.cfg file you need, with any name and .cfg -# extension. Run this script and it will automatically -# rename your file to the indexed format above. -# -# Author: Daniel BORNAZ $max_index){ - $max_index=$crt_index; - } - - $counter_indexed++; - }else{ - @queue=($file,@queue); - $counter_queue++; - } - } - -# set the next index number - $max_index++; - -# index the enqueued file names - foreach my $file (@queue){ - my $newname; - - $newname=sprintf("%05d-%s",$max_index++,$file); - system("mv",$file,$newname) == 0 - or die "Cannot rename $file to $newname: $?"; - } - - printf("$counter_queue files indexed, ". - "$counter_indexed files already indexed. Done.\n"); -} - -#-------------------------------------------------------------------- -# display usage help -# -sub print_usage { - print "\n"; - print " ./indexcfgs.pl [--strip]\n"; - print " no params: Index the *.cfg file names in current dir\n"; - print " to DDDDD-\n"; - print " --strip: Strips the index from the *.cfg file names ". - "in current dir\n"; - print "\n"; - - exit 0; -} - - -#--- Program starts here -------------------------------------------- -GetOptions(\%args, - "strip" => \$opt_strip, - "help" => \$opt_help, -); - -if(defined($opt_help)){ - print_usage(); -} - -if(defined($opt_strip)){ - strip_file_names(); -}else{ - index_file_names(); -} - - -- cgit v1.2.3-54-g00ecf