Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 31d2b93

Browse files
author
Matthias Koeppe
committed
build/pkgs/giac/spkg-src: Make the script work on macOS too
1 parent 036dbba commit 31d2b93

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build/pkgs/giac/spkg-src

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ if [ -f "$OUTPUTFILEBASENAME".tar.gz -o -f "$OUTPUTFILEBASENAME".tar.bz2 ] ; the
2929
exit 1
3030
fi
3131

32-
# Build a temporary working dir. (subdir of SAGE_DISTFILES)
33-
TARGET=$(mktemp -d -p"$SAGE_DISTFILES")
32+
# Build a temporary working dir. (preferably, a subdir of SAGE_DISTFILES)
33+
TARGET=$(mktemp -d -p"$SAGE_DISTFILES" || mktemp -d)
3434
ORIGDIR=`pwd`
3535
cd "$TARGET"
3636

@@ -70,9 +70,7 @@ touch html_vall
7070

7171
# building giac source tarball for the spkg
7272
cd ../../../
73-
tar -cj src -f "$OUTPUTFILEBASENAME".tar.bz2
74-
75-
73+
tar -cjf "$OUTPUTFILEBASENAME".tar.bz2 src
7674

7775
# cleaning extracted dir.
7876
cd ..

0 commit comments

Comments
 (0)