temppack.tar is not always in /tmp

This commit is contained in:
Philipp Möller 2015-12-21 18:05:01 +01:00
parent 71b4e9c515
commit 59baa1d196
1 changed files with 4 additions and 4 deletions

View File

@ -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;