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