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