Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonch committed May 17, 2024
1 parent 70b90b8 commit cb445d0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ default:
cp -f _build/default/src/bin/lucidcc.exe lucidcc

macos-release:
dune build src/bin/main.exe
cp -f _build/default/src/bin/main.exe dpt
./scripts/build_macos_release.sh

linux-release:
dune build src/bin/main.exe
cp -f _build/default/src/bin/main.exe dpt
./scripts/build_linux_release.sh

all:
Expand Down
4 changes: 2 additions & 2 deletions release/unpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ my_dir="$(dirname "$0")"
if [ ! -f $my_dir/macos.tar.gz ]; then
echo "macos.tar.gz not found -- skipping"
else
tar -xvf $my_dir/macos.tar.gz
tar -xvf $my_dir/macos.tar.gz -C $my_dir
fi

if [ ! -f $my_dir/linux.tar.gz ]; then
echo "linux.tar.gz not found -- skipping"
else
tar -xvf $my_dir/linux.tar.gz
tar -xvf $my_dir/linux.tar.gz -C $my_dir
fi
5 changes: 3 additions & 2 deletions scripts/build_linux_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ fi
release_base=./release
os_base=linux
release_dir=$release_base/$os_base/lucid
lib_dir=$release_dir/libs
lib_dir=$release_dir/lib

rm -rf $release_dir
mkdir -p $lib_dir
# 1. build the binary locally (in the parent directory)
# make
make

# copy binary
cp dpt "$release_dir"/dpt
Expand All @@ -52,6 +52,7 @@ for lib in $deps; do
done

echo "patching binary dynamic lib paths"
chmod +w "$release_dir"/dpt
patchelf --set-rpath '$ORIGIN/lib' "$release_dir"/dpt

# package os release in a tarball inside of the release dir
Expand Down
5 changes: 3 additions & 2 deletions scripts/build_macos_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
release_base=./release
os_base=macos
release_dir=$release_base/$os_base/lucid
lib_dir=$release_dir/libs
lib_dir=$release_dir/lib

rm -rf $release_dir
mkdir -p $lib_dir
Expand All @@ -33,7 +33,8 @@ cp dpt $release_dir/

# run dylibbundler to bundle the dynamic libraries (mainly z3)
echo "patching binary dynamic lib paths"
dylibbundler -od -b -x $release_dir/dpt -d $lib_dir -p @executable_path/libs/
chmod +w $release_dir/dpt
dylibbundler -od -b -x $release_dir/dpt -d $lib_dir -p @executable_path/lib/

# package os release in a tarball inside of the release dir
echo "Packaging release"
Expand Down

0 comments on commit cb445d0

Please sign in to comment.