mirror of https://github.com/CGAL/cgal
temppack.tar is not always in /tmp
This commit is contained in:
parent
71b4e9c515
commit
59baa1d196
|
|
@ -160,12 +160,12 @@ sub install_packages() {
|
|||
print "\n";
|
||||
system(@command);
|
||||
# generate the list of header file per package that not in an internal subdirectory. Files start with CGAL
|
||||
system("tar -tf /tmp/temppack.tar --wildcards './include/\*\*.h' --transform 's/.\\\/include\\\///' --show-transformed-names --exclude=**/internal --index-file=/tmp/templist");
|
||||
system("mv", "/tmp/templist", "/tmp/$package_name.txt");
|
||||
|
||||
@filelistcmd = ('tar', '-tf', "$RELEASEDIR/temppack.tar", '--wildcards', "./include/\*\*.h",
|
||||
"--transform=s/.\\\/include\\\///", '--show-transformed-names',
|
||||
'--exclude=**/internal', "--index-file=/tmp/$package_name.txt");
|
||||
system(@filelistcmd);
|
||||
move("$RELEASEDIR/temppack.tar", "$RELEASEDIR/$VERSION/");
|
||||
|
||||
|
||||
chdir "$RELEASEDIR/$VERSION" or die;
|
||||
my $tar = Archive::Tar->new;
|
||||
open my $TARFILL, "$RELEASEDIR/$VERSION/temppack.tar" or die;
|
||||
|
|
|
|||
Loading…
Reference in New Issue