[Genabel-commits] r1968 - pkg/GenABEL-general/distrib_scripts
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon May 11 16:42:28 CEST 2015
Author: lckarssen
Date: 2015-05-11 16:42:27 +0200 (Mon, 11 May 2015)
New Revision: 1968
Modified:
pkg/GenABEL-general/distrib_scripts/makedistrib_MixABEL.sh
Log:
Add check MixABEL's distrib script to see if the package directroy already exists before trying to delete .o files in it.
Otherwise find issues a warning (which would only confuse people).
Modified: pkg/GenABEL-general/distrib_scripts/makedistrib_MixABEL.sh
===================================================================
--- pkg/GenABEL-general/distrib_scripts/makedistrib_MixABEL.sh 2015-05-10 07:44:20 UTC (rev 1967)
+++ pkg/GenABEL-general/distrib_scripts/makedistrib_MixABEL.sh 2015-05-11 14:42:27 UTC (rev 1968)
@@ -59,8 +59,10 @@
echo "--------------------------------------------------"
echo "Removing old files and directories (if present)"
echo "--------------------------------------------------"
-find -L ${PKG} -name "*.o" -type f | xargs rm -f
-rm -f ${PKG}/src/${PKG}.so
+if [ -d ${PKG} ]; then
+ find -L ${PKG} -name "*.o" -type f | xargs rm -f
+ rm -f ${PKG}/src/${PKG}.so
+fi
rm -rf ${PKG}.Rcheck
rm -rf ${PKG}_*.tar.gz
if [ $NOCHECKOUT == false ]; then
More information about the Genabel-commits
mailing list