Exclude .git dir fom package generation
This commit is contained in:
parent
e507eac37d
commit
39daea9755
@ -293,6 +293,7 @@ foreach my $PROJECT (@PROJECTLIST) {
|
|||||||
}
|
}
|
||||||
print "Clean $BUILDROOT\n";
|
print "Clean $BUILDROOT\n";
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.cache`;
|
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.cache`;
|
||||||
|
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.git`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.project`;
|
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.project`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.settings`;
|
$ret=`rm -fr $BUILDROOT/$PROJECTLC/.settings`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECTLC/index.php`;
|
$ret=`rm -fr $BUILDROOT/$PROJECTLC/index.php`;
|
||||||
|
|||||||
@ -1780,7 +1780,7 @@ if ($dirins && $action == 'generatepackage') {
|
|||||||
dol_mkdir($dirofmodule);
|
dol_mkdir($dirofmodule);
|
||||||
}
|
}
|
||||||
// Note: We exclude /bin/ to not include the already generated zip
|
// Note: We exclude /bin/ to not include the already generated zip
|
||||||
$result = dol_compress_dir($dir, $outputfilezip, 'zip', '/\/bin\//', $modulelowercase);
|
$result = dol_compress_dir($dir, $outputfilezip, 'zip', '/\/bin\/|\.git/', $modulelowercase);
|
||||||
} else {
|
} else {
|
||||||
$result = -1;
|
$result = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user