This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A chef definition for installing kernel modules on ubuntu/debian. | |
define :kernel_module, :action => :install do | |
if params[:action] == :install | |
bash "modprobe #{params[:name]}" do | |
code "modprobe #{params[:name]}" | |
not_if "lsmod |grep #{params[:name]}" | |
end | |
bash "install #{params[:name]} in /etc/modules" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import subprocess | |
def main(): | |
if len(sys.argv) > 1: | |
time = sys.argv[1] | |
else: | |
time = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function errexit() { | |
local err=$? | |
set +o xtrace | |
local code="${1:-1}" | |
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err" | |
# Print out the stack trace described by $function_stack | |
if [ ${#FUNCNAME[@]} -gt 2 ] | |
then | |
echo "Call tree:" | |
for ((i=1;i<${#FUNCNAME[@]}-1;i++)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file(GLOB PYTHON_SCRIPTS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | |
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/*") | |
install(PROGRAMS ${PYTHON_SCRIPTS} | |
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
catkin_make | |
.PHONY: all | |
test: | |
catkin_make run_tests | |
.PHONY: test | |
install: | |
catkin_make install |