Skip to content
Snippets Groups Projects
Commit 478a78d3 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[wip/sysdep] Add macros and shell script to detect pal-distro

pal-distro.mk: Fix the recursive inclusion protection.
parent a547ce31
No related branches found
No related tags found
No related merge requests found
# robotpkg wip/pal-erbium
# Created: Olivier Stasse on Mon 11 2018
#
ifndef _paldistro_mk
_paldistro_mk:=defined
_paldistro:=$(shell ${SHELL} ${ROBOTPKG_DIR}/wip/sysdep/pal-distro.sh)
export PALDISTRO:= $(word 1,${_paldistro})
#ifeq (yes,$(call exists,${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk))
# include ${ROBOTPKG_DIR}/wip/sysdep/platform/${PALDISTRO}.mk
#else
# $(error missing wip/sysdep/platform/${PALDISTRO}.mk)
#endif
endif # ERBIUM_ROS_FLAVOR
#!/bin/sh
#
# Copyright (c) 2011,2013-2014,2018 LAAS/CNRS
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright
# notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# Anthony Mallet on Fri Sep 9 2011
#
if test -f /opt/pal/erbium; then
echo "palerbium"
exit 0
fi
if test -f /opt/pal/dubnium; then
echo "paldubnium"
exit 0
fi
echo "Not found"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment