forked from jsk-ros-pkg/jsk_robot
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jsk_unitree_startup/cross] Install expect
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
jsk_unitree_robot/cross/ros1_dependencies_build_scripts/1039-expect
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -xeu -o pipefail | ||
|
||
DEBIAN_DIR=/home/user/ros1_dependencies_sources/src/expect/debian/debian | ||
SOURCE_DIR=/home/user/ros1_dependencies_sources/src/expect/expect5.45.4 | ||
|
||
# | ||
# constantly does not have patches | ||
# | ||
cd ${DEBIAN_DIR}/patches | ||
for patch_file in $(grep -v ^# series); do | ||
OUT="$(patch -p1 --forward --directory ${SOURCE_DIR} < ${patch_file} | tee /dev/tty)" || echo "${OUT}" | grep "Skipping patch" -q || (echo "$OUT" && false) || echo "OK" | ||
done | ||
cd ${SOURCE_DIR} | ||
./configure --prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies --build=arm --verbose --enable-shared --exec-prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies | ||
make | ||
make install |