Skip to content

Commit

Permalink
Fix code to publishing packages on foundation server
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 12, 2016
1 parent 731d1cf commit eb65707
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/makepack-dolibarr.pl
Expand Up @@ -1086,6 +1086,14 @@
"$DESTI/standard/$FILENAMETGZ.tgz"=>'Dolibarr ERP-CRM',
"$DESTI/standard/$FILENAMETGZ.zip"=>'Dolibarr ERP-CRM'
);
%filestoscanstableasso=(
"$DESTI/package_rpm_generic/$FILENAMERPM"=>'package_rpm_generic',
"$DESTI/package_debian-ubuntu/${FILENAMEDEB}_all.deb"=>'package_debian-ubuntu',
"$DESTI/package_windows/$FILENAMEEXEDOLIWAMP.exe"=>'package_windows',
"$DESTI/standard/$FILENAMETGZ.tgz"=>'standard',
"$DESTI/standard/$FILENAMETGZ.zip"=>'standard'
);

use POSIX qw/strftime/;
foreach my $file (sort keys %filestoscansf)
{
Expand Down Expand Up @@ -1128,13 +1136,15 @@

if ($target eq 'SF') {
$destFolder="$NEWPUBLISH/$filestoscan{$file}/".$MAJOR.'.'.$MINOR.'.'.$BUILD;
print "Publish file ".$file." to $NEWPUBLISH/".$filestoscan{$file}."\n";
}
elsif ($target eq 'ASSO' && $NEWPUBLISH =~ /stable/) {
$destFolder="$NEWPUBLISH/$filestoscanstableasso{$file}";
}
else
{
$destFolder="$NEWPUBLISH";
print "Publish file ".$file." to $NEWPUBLISH\n";
}
print "Publish file ".$file." to ".$destFolder."\n";

# mkdir
#my $ssh = Net::SSH::Perl->new("frs.sourceforge.net");
Expand Down

0 comments on commit eb65707

Please sign in to comment.