| #!/bin/sh |
| |
| |
| |
| |
| |
| |
| |
| PRIMARY=$1 |
| DEBUGBUILDSENABLED=$2 |
| |
| if [ -z $2 ]; then |
| exit 1 |
| fi |
| |
| if [ $PRIMARY == "fedora" ]; then |
| SECONDARY=rhel |
| else |
| SECONDARY=fedora |
| fi |
| |
| for i in kernel-*-$PRIMARY.config; do |
| NEW=kernel-$VERSION-`echo $i | cut -d - -f2- | sed s/-$PRIMARY//` |
| |
| mv $i $NEW |
| done |
| |
| rm kernel-*-$SECONDARY.config |
| |
| if [ $DEBUGBUILDSENABLED -eq 0 ]; then |
| for i in kernel-*debug*.config; do |
| base=`echo $i | sed -r s/-?debug//g` |
| NEW=kernel-`echo $base | cut -d - -f2-` |
| mv $i $NEW |
| done |
| fi |