]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- adopt using plain filenames on HEAD
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 8 Mar 2011 11:50:31 +0000 (11:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    percona.sh -> 1.10

percona.sh

index 58680417bac585700eb28ea19b9bb7fe113c04c0..58a4d8d90fce7408ce49a57551e0bb1976dc4424 100644 (file)
@@ -32,7 +32,12 @@ fi
 > .patch.spec
 i=100
 for patch in $(cat $version/series | filter_names); do
-       file=mysql-$patch
+       # if patch already existed, use mysql- prefix
+       if [ -f mysql-$patch ]; then
+               file=mysql-$patch
+       else
+               file=$patch
+       fi
        cat $version/$patch | filter_files > $file
 
        if [ -z "$(awk -vfile=$file -F/ '$2 == file{print}' CVS/Entries)" ]; then
@@ -41,7 +46,7 @@ for patch in $(cat $version/series | filter_names); do
        fi
 
        echo >&2 "Adding: $patch"
-       printf "Patch%d:\t%s\n" $i %{name}-$patch >> .percona.spec
+       printf "Patch%d:\t%s\n" $i $(echo "$file" | sed -e 's,^mysql-,%{name}-,') >> .percona.spec
        printf "%%patch%d -p1\n" $i >> .patch.spec
        i=$((i+1))
 done
This page took 0.128583 seconds and 4 git commands to generate.