-
Notifications
You must be signed in to change notification settings - Fork 167
/
push.sh
28 lines (25 loc) · 947 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
24
25
26
27
28
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 "*.dsb" -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 . -type f -name "*.eggs*" -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/*
cd ./pc_software
python _zip_source.py
git add --all
git commit -m "$@"
git push origin master