-
Notifications
You must be signed in to change notification settings - Fork 97
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] Add compress command
- Loading branch information
Showing
2 changed files
with
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ user: | |
install: | ||
./install.sh | ||
|
||
compress: | ||
./compress.sh | ||
|
||
clean: | ||
rm -fr ${TARGET_MACHINE}_ws_* | ||
|
||
|
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,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 |