Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/giac/spkg-src: Make the script work on macOS too
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 23, 2020
1 parent 036dbba commit 31d2b93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/pkgs/giac/spkg-src
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if [ -f "$OUTPUTFILEBASENAME".tar.gz -o -f "$OUTPUTFILEBASENAME".tar.bz2 ] ; the
exit 1
fi

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

Expand Down Expand Up @@ -70,9 +70,7 @@ touch html_vall

# building giac source tarball for the spkg
cd ../../../
tar -cj src -f "$OUTPUTFILEBASENAME".tar.bz2


tar -cjf "$OUTPUTFILEBASENAME".tar.bz2 src

# cleaning extracted dir.
cd ..
Expand Down

0 comments on commit 31d2b93

Please sign in to comment.