File: make_exe_script

package info (click to toggle)
ros-roslisp 1.9.24-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 820 kB
  • sloc: lisp: 5,271; python: 632; xml: 511; sh: 192; makefile: 48
file content (25 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env sh

ROSLISP_PATH=`rospack find roslisp`
if [ -z "$ROSLISP_PATH" ]; then
  echo "roslisp not found"
  exit 1
fi

if [ $# = 4 ]; then
  pkg=$1
  system=$2
  entry=$3
  output=$4
  cat > $output <<EOF
#!/usr/bin/env sh
"true"; exec /usr/bin/env sbcl --noinform --load $ROSLISP_PATH/scripts/roslisp-sbcl-init --script "\$0" "\$@"

(ros-load:load-system "${pkg}" "${system}")
(${entry})
EOF
  chmod a+x $output
else
  echo "Usage: make_node_exec <pkg> <system> <entry> <output>"
  exit 1
fi