]> git.pld-linux.org Git - packages/fpm.git/commitdiff
cleanup backups after patching
authorElan Ruusamäe <glen@delfi.ee>
Mon, 10 Aug 2015 11:32:30 +0000 (14:32 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 10 Aug 2015 11:32:30 +0000 (14:32 +0300)
ruby-fpm.spec

index b624dddd9b569d2bd736733a539d58c01ebfa0a2..86d0dd8d161d9781b3e66b8d5b02247d480bb402 100644 (file)
@@ -47,6 +47,9 @@ wasting pointless hours debugging bad rpm specs!
 %patch0 -p1
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %build
 # write .gemspec
 %__gem_helper spec
This page took 0.054676 seconds and 4 git commands to generate.