mirror of
https://github.com/openharmony/third_party_liburing.git
synced 2026-07-19 10:48:00 -04:00
43384c495e
Signed-off-by: zhongning5 <zhongning5@huawei.com>
19 lines
268 B
Bash
Executable File
19 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
SRC_DIR="$1"
|
|
CODE_DIR="$2"
|
|
|
|
set -e
|
|
if [ "$SRC_DIR" == "" ] || [ "$CODE_DIR" == "" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p $CODE_DIR
|
|
cp -r $SRC_DIR $CODE_DIR
|
|
|
|
CURRENT_DIR=$(pwd)
|
|
cd $CODE_DIR/liburing
|
|
sh ./configure
|
|
cd "$CURRENT_DIR"
|