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