packages: mysql/percona.sh - adopt using plain filenames on HEAD
glen
glen at pld-linux.org
Tue Mar 8 12:50:36 CET 2011
Author: glen Date: Tue Mar 8 11:50:36 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- adopt using plain filenames on HEAD
---- Files affected:
packages/mysql:
percona.sh (1.9 -> 1.10)
---- Diffs:
================================================================
Index: packages/mysql/percona.sh
diff -u packages/mysql/percona.sh:1.9 packages/mysql/percona.sh:1.10
--- packages/mysql/percona.sh:1.9 Tue Mar 8 12:46:53 2011
+++ packages/mysql/percona.sh Tue Mar 8 12:50:31 2011
@@ -32,7 +32,12 @@
> .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 @@
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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mysql/percona.sh?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list