Skip to content
Snippets Groups Projects
Commit f644fea2 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Exclude conf file from snapshot

parent 0aff12c9
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ $MINOR="7";
$BUILD="0-beta"; # Mettre x pour release, x-beta pour beta, x-rc pour release candidate
$RPMSUBVERSION="1"; # A incrementer au moment de la release
@LISTETARGET=("TGZ","ZIP","RPM","DEB","EXE","EXEDOLIWAMP"); # Possible packages
@LISTETARGET=("TGZ","ZIP","RPM","DEB","EXE","EXEDOLIWAMP","SNAPSHOT"); # Possible packages
%REQUIREMENTTARGET=( # Tool requirement for each package
"SNAPSHOT"=>"tar",
"TGZ"=>"tar",
......@@ -250,7 +250,7 @@ if ($nboftargetok) {
rename("$BUILDROOT/$PROJECT","$BUILDROOT/$FILENAMESNAPSHOT");
unlink $FILENAMESNAPSHOT.tgz;
print "Compress $SOURCE into $FILENAMESNAPSHOT.tgz...\n";
$cmd="tar --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT";
$cmd="tar --exclude $FILENAMESNAPSHOT.tgz --exclude .cache --exclude .settings --exclude conf.php --directory \"$BUILDROOT\" -czvf \"$FILENAMESNAPSHOT.tgz\" $FILENAMESNAPSHOT";
$ret=`$cmd`;
if ($OS =~ /windows/i)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment