Skip to content

Commit

Permalink
use local paths
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jun 30, 2024
1 parent 3025668 commit 315d298
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,43 @@ echo "--------------------------------------------------"

function jdk_install
{
chmod +x bin/*
chmod +x ./bin/*
mkdir -p $INSTALL_DIR/bin
mv bin/* $INSTALL_DIR/bin/
mv ./bin/* $INSTALL_DIR/bin/
ls -la $INSTALL_DIR/bin

mkdir -p $INSTALL_DIR/include
mv include/* $INSTALL_DIR/include
mv ./include/* $INSTALL_DIR/include
if [ -e ./lib/jspawnhelper ]; then
chmod +x ./lib/jspawnhelper
fi

mkdir -p $INSTALL_DIR/lib
mv lib/* $INSTALL_DIR/lib
mv ./lib/* $INSTALL_DIR/lib

if [ -f "DISCLAIMER" ]; then
# use cp to copy file and not link
cp DISCLAIMER $INSTALL_DIR/DISCLAIMER
fi

cp release $INSTALL_DIR/release
cp ./release $INSTALL_DIR/release

mkdir -p $INSTALL_DIR/conf
mv conf/* $INSTALL_DIR/conf
mv ./conf/* $INSTALL_DIR/conf

mkdir -p $INSTALL_DIR/jmods
mv jmods/* $INSTALL_DIR/jmods
mv ./jmods/* $INSTALL_DIR/jmods

mkdir -p $INSTALL_DIR/legal
mv legal/* $INSTALL_DIR/legal
mv ./legal/* $INSTALL_DIR/legal

mkdir -p $INSTALL_DIR/man/man1
mv man/man1/* $INSTALL_DIR/man/man1
mv ./man/man1/* $INSTALL_DIR/man/man1
rm -rf man/man1

# The man dir could be empty already so we can safely ignore this error
set +e
mv -f man/* $INSTALL_DIR/man
mv -f ./man/* $INSTALL_DIR/man
set -e
}

Expand Down

0 comments on commit 315d298

Please sign in to comment.