LingYun open library local/cross compile shell scripts
guowenxue
20 hours ago e8b85e738712e493d1eb033ea5321c3c3e6bb3af
libevdev/build.sh
@@ -30,6 +30,9 @@
# download taballs path
TARBALL_PATH=$PRJ_PATH/tarballs
# check installed or not file
INST_FILE=$PREFIX_PATH/lib/libevdev.so
# shell script will exit once get command error
set -e
@@ -64,6 +67,11 @@
function do_fetch()
{
    if [ -e ${INST_FILE} ] ; then
        pr_warn "$LIB_NAME compiled already, exit..."
        exit;
    fi
    if [ -d $LIB_NAME ] ; then
        pr_warn "$LIB_NAME source code fetched already"
        return 0;
@@ -119,11 +127,6 @@
    exit;
fi
if [ -e $PREFIX_PATH/lib/libevdev.so ] ; then
    pr_warn "$LIB_NAME compiled already, exit..."
    exit;
fi
do_fetch
do_export