File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl
2
2
3
- $project = ' doslib2' ;
3
+ $project = ` git config --get remote.origin.url | sed -e 's/\\ /\$ //' | sed -e 's/^.*\\ ///'` ;
4
+ chomp $project ;
5
+ die if $project eq " " ;
6
+
7
+ $branch = ` git branch | grep '^\* ' | sed -e 's/^\* //'` ; chomp $branch ;
8
+ $branchfname = " -branch-$branch " if $branch ne " " ;
9
+ print " Current branch: $branch \n " ;
4
10
5
11
print " Ensuring the build tree is clean...\n " ;
6
12
$x = system (" ./git-update-all-wo-push" );
53
59
54
60
# my $filename = $project."-rev-".sprintf("%08u",$lcrev)."-src.tar.bz2";
55
61
my $pwd = ` pwd` ; chomp $pwd ;
56
- my $filename = " ../" .($as ne " " ? $as : $project )." -$lcdate -commit-$lcommit -src.tar" ;
62
+ my $filename = " ../" .($as ne " " ? $as : $project )." -$lcdate -commit-$lcommit -src$branchfname .tar" ;
57
63
if (!( -f " $filename .xz" )) {
58
64
print " Packing source (all build files except LIB,OBJ,etc.)\n " ;
59
65
print " to: $filename \n " ;
60
66
61
- $x = system (" tar --exclude=.git - C .. -cvf $filename $project " );
67
+ $x = system (" tar -C .. -cvf $filename $project " ); # --exclude=.git
62
68
die unless $x == 0;
63
69
print " Packing to XZ\n " ;
64
70
$x = system (" xz -6e $filename " );
You can’t perform that action at this time.
0 commit comments