Revision
141299
Author
dstrubbe@macports.org
Date
2015-10-15 10:09:53 -0700 (Thu, 15 Oct 2015)

Log Message

cppcheck: Change 'mv' to 'cp' for recommended update of config files, to avoid possible warnings from 'Updating database of binaries' and preserve examples for reference.

Modified Paths

Diff

Modified: trunk/dports/devel/cppcheck/Portfile (141298 => 141299)


--- trunk/dports/devel/cppcheck/Portfile	2015-10-14 23:31:23 UTC (rev 141298)
+++ trunk/dports/devel/cppcheck/Portfile	2015-10-15 17:09:53 UTC (rev 141299)
@@ -46,7 +46,7 @@
 
 notes                       "If you've updated cppcheck from a previous version," \
                             "you may want to replace the included config files:" \
-                            "sudo find /opt/local/share/cppcheck -type f -name \"*.cfg.dist\" -exec bash -c 'f=\"\{\}\"; mv \"\$f\" \"\$\{f%.cfg.dist\}.cfg\"' \\;"
+                            "sudo find /opt/local/share/cppcheck -type f -name \"*.cfg.dist\" -exec bash -c 'f=\"\{\}\"; cp \"\$f\" \"\$\{f%.cfg.dist\}.cfg\"' \\;"
 
 post-destroot {
     xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1