Skip to content

Commit

Permalink
Refine scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 21, 2021
1 parent 5906345 commit fed57f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
22 changes: 0 additions & 22 deletions trunk/3rdparty/copy_to_gits.sh

This file was deleted.

25 changes: 25 additions & 0 deletions trunk/scripts/copy_to_gits.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

if [[ ! -d 3rdparty/signaling || ! -d 3rdparty/httpx-static || ! -d 3rdparty/srs-bench ]]; then
echo "no signaling or httpx-static or srs-bench in $(pwd)"
exit -1
fi
if [[ ! -d ~/git/signaling || ! -d ~/git/go-oryx/httpx-static || ! -d ~/git/srs-bench ]]; then
echo "no signaling or httpx-static or srs-bench at ~/git"
exit -1
fi

if [[ ! -f ~/git/srs-bench/go.mod ]]; then
echo "no feature/rtc in srs-bench"
exit -1
fi

echo "Copy signaling"
cp -R 3rdparty/signaling/* ~/git/signaling/ && (cd ~/git/signaling && git st)

echo "Copy httpx-static"
cp -R 3rdparty/httpx-static/* ~/git/go-oryx/httpx-static/ && (cd ~/git/go-oryx && git st)

echo "Copy srs-bench"
cp -R 3rdparty/srs-bench/* ~/git/srs-bench/ && (cd ~/git/srs-bench && git st)

0 comments on commit fed57f6

Please sign in to comment.