Skip to content

Commit

Permalink
slic3r#4635 Fix invocation for make_archive.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Dec 31, 2018
1 parent ed45c01 commit a3073af
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions package/linux/make_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
# Adapted from script written by bubnikv for Prusa3D.
# Run from slic3r repo root directory.

if [ "$#" -ne 1 ]; then
echo "Usage: $(basename $0) arch_name"
echo "This script should be called from the main source directory for Slic3r."
if [ "$#" -lt 1 ]; then
echo "Usage: $(basename $0) arch_name [source_dir]"
echo "source_dir is the path to Slic3r's main directory. Default: $(pwd)"
exit 1;
fi
libdirs=$(find ./local-lib -iname *.so -exec dirname {} \; | sort -u | paste -sd ";" -)

echo "WD: $(dirname $0)"
WD=./$(dirname $0)
source $(dirname $0)/../common/util.sh
# Determine if this is a tagged (release) commit.
Expand All @@ -26,6 +27,8 @@ set_app_name
set_pr_id
install_par

libdirs=$(find ${SLIC3R_DIR}/local-lib -iname *.so -exec dirname {} \; | sort -u | paste -sd ";" -)

# If we're on a branch, add the branch name to the app name.
if [ "$current_branch" == "master" ]; then
if [ ! -z ${PR_ID+x} ]; then
Expand Down

0 comments on commit a3073af

Please sign in to comment.