forked from dekuNukem/duckyPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpush.sh
23 lines (21 loc) · 801 Bytes
/
push.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if [[ $# -eq 0 ]] ; then
echo 'error: please enter a commit comment'
exit 1
fi
find . -type f -name "*.b#*" -exec rm -f {} \;
find . -type f -name "*.s#*" -exec rm -f {} \;
find . -type f -name "*.l#*" -exec rm -f {} \;
find . -type f -name "*.csv#*" -exec rm -f {} \;
find . -type f -name "*.DS_Store*" -exec rm -f {} \;
find . -name "__pycache__" -exec rm -rf {} \;
find ./pc_software -name "build" -exec rm -rf {} \;
find ./pc_software -name "dist" -exec rm -rf {} \;
find ./pc_software -name "*.zip" -exec rm -rf {} \;
find ./pc_software -type f -name "*.spec*" -exec rm -f {} \;
python update_firmware_ref.py
rm ./sample_profiles.zip
7z.exe a -r sample_profiles.zip ./sample_profiles
zip -rv sample_profiles.zip ./sample_profiles
git add --all
git commit -m "$@"
git push origin master