Skip to content

Instantly share code, notes, and snippets.

@prophile
Last active December 12, 2015 09:29
Show Gist options
  • Select an option

  • Save prophile/4751483 to your computer and use it in GitHub Desktop.

Select an option

Save prophile/4751483 to your computer and use it in GitHub Desktop.
#!/bin/sh
mkdir /tmp/robot-bee
cp -R $1 /tmp/robot-bee/robot.zip
pushd /tmp/robot-bee
unzip robot.zip
rm robot.zip
rm -rf user/.git
find user -name '*.pyc' | xargs rm
rm -rf user/.gitignore
rm -rf user/.gitattributes
rm -rf user/README.md
#rm -rf firmware
#sed -i '' -e's/self\.firmware_update/#self.firmware_update/' run.py
find . | xargs zip robot.zip
popd
mv /tmp/robot-bee/robot.zip $1
rm -rf /tmp/robot-bee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment