2
0

copy_to_gits.sh 946 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. if [[ ! -d 3rdparty/signaling || ! -d 3rdparty/httpx-static || ! -d 3rdparty/srs-bench ]]; then
  3. echo "no signaling or httpx-static or srs-bench in $(pwd)"
  4. exit -1
  5. fi
  6. if [[ ! -d ~/git/signaling || ! -d ~/git/go-oryx/httpx-static || ! -d ~/git/srs-bench ]]; then
  7. echo "no signaling or httpx-static or srs-bench at ~/git"
  8. exit -1
  9. fi
  10. if [[ ! -f ~/git/srs-bench/go.mod ]]; then
  11. echo "no feature/rtc in srs-bench"
  12. exit -1
  13. fi
  14. echo "Copy signaling"
  15. cp -R 3rdparty/signaling/* ~/git/signaling/ &&
  16. cp -R 3rdparty/signaling/.gitignore ~/git/signaling/ &&
  17. (cd ~/git/signaling && git st)
  18. echo "Copy httpx-static"
  19. cp -R 3rdparty/httpx-static/* ~/git/go-oryx/httpx-static/ &&
  20. cp -R 3rdparty/httpx-static/.gitignore ~/git/go-oryx/httpx-static/ &&
  21. (cd ~/git/go-oryx && git st)
  22. echo "Copy srs-bench"
  23. cp -R 3rdparty/srs-bench/* ~/git/srs-bench/ &&
  24. cp -R 3rdparty/srs-bench/.gitignore ~/git/srs-bench/ &&
  25. (cd ~/git/srs-bench && git st)