Skip to content

Commit

Permalink
[jsk_unitree_startup/cross] Add compress command
Browse files Browse the repository at this point in the history
  • Loading branch information
iory authored and k-okada committed Oct 17, 2023
1 parent c0e17b0 commit 518dd0d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsk_unitree_robot/cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ user:
install:
./install.sh

compress:
./compress.sh

clean:
rm -fr ${TARGET_MACHINE}_ws_*

Expand Down
29 changes: 29 additions & 0 deletions jsk_unitree_robot/cross/compress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

if [ -e "arm64v8_User" ]; then
if [ -e "arm64v8_User.tgz" ]; then
echo "WARNING: Compressed arm64v8_User.tgz is found."
read -p "WARNING: Are you sure to continue [y/N] ? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then
tar -zcvf arm64v8_User.tgz arm64v8_User
fi
else
tar -zcvf arm64v8_User.tgz arm64v8_User
fi
fi

if [ -e "arm64v8_System" ]; then
if [ -e "arm64v8_System.tgz" ]; then
echo "WARNING: Compressed arm64v8_System.tgz is found."
read -p "WARNING: Are you sure to continue [y/N] ? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then
chmod 644 arm64v8_System/ros1_inst/share/pr2eus/*.l
tar -zcvf arm64v8_System.tgz arm64v8_System
fi
else
chmod 644 arm64v8_System/ros1_inst/share/pr2eus/*.l
tar -zcvf arm64v8_System.tgz arm64v8_System
fi
fi

0 comments on commit 518dd0d

Please sign in to comment.