reorder-patches revision 6260
12856N/A echo $1 | sed -e 's/^\(.*\)-\([0-9][0-9]\)-\(.*\)$/\2/' 12856N/A echo $1 | sed -e 's/^\(.*\)-\([0-9][0-9]\)-\(.*\)$/\1/' 12856N/A echo $1 | sed -e 's/^\(.*\)-\([0-9][0-9]\)-\(.*\)$/\3/' 14501N/A# ask "question" variable_name "default answer" 14501N/A# ask_yes_no "question" variable_name "default answer" 14501N/A echo "Usage: $0 [options] [component...]" 14501N/A echo "Run this script in the patches subdirectory to reorder" 14501N/A echo "the patch numbers to be continuous and starting from 01" 14501N/A echo "If no components are specified, it'll check all of them." 14501N/A echo "It does not change the Patch<n> and %patch<n> numbers" 14501N/A echo "in the spec files, but updates the file names with the" 14501N/A echo " -f, --force don't ask for confirmation" 14501N/A echo " -h, --help print this usage info" 18988N/A echo "Run this script in the patches subdirectory" echo "No patches found for component $comp" echo "No patches need renumbering for component $prev_comp" echo "No patches need renumbering for component $prev_comp"