Skip to content

Commit

Permalink
Add a protection to avoid to take modules into custom dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 6, 2017
1 parent a9bb2eb commit c4475ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/makepack-dolibarr.pl
Expand Up @@ -509,7 +509,6 @@
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/documents`;

# Removed known external modules to avoid any error when packaging from env where external modules are tested
#$ret=`find $BUILDROOT/$PROJECT/htdocs/custom/* -type d -exec rm -fr {} \;`; # For custom we want to keep dir
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/allscreens*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/ancotec*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/cabinetmed*`;
Expand Down Expand Up @@ -575,6 +574,10 @@
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tecnickcom/tcpdf/tools`;
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tecnickcom/tcpdf/LICENSE.TXT`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/savant`;

print "Remove subdir of custom dir\n";
print "find $BUILDROOT/$PROJECT/htdocs/custom/* -type d -exec rm -fr {} \\;\n";
$ret=`find $BUILDROOT/$PROJECT/htdocs/custom/* -type d -exec rm -fr {} \\; >/dev/null 2>&1`; # For custom we want to keep dir
}

# Build package for each target
Expand Down

0 comments on commit c4475ca

Please sign in to comment.