From f644fea21483893eadb6646aaaa3654453a585e7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Thu, 13 Aug 2009 11:55:14 +0000 Subject: [PATCH] Exclude conf file from snapshot --- build/makepack-dolibarr.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index fe6e6cab85e..d12abf824f2 100644 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -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) { -- GitLab