summaryrefslogtreecommitdiffstats
path: root/docs/_esnet/deploy.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:21:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:21:43 +0000
commitc8c3bd06ef1a7248c8195d050d8a4075d051256e (patch)
tree419655deec1b0af0c5d3ec488693f1494fb20959 /docs/_esnet/deploy.sh
parentInitial commit. (diff)
downloadiperf3-c8c3bd06ef1a7248c8195d050d8a4075d051256e.tar.xz
iperf3-c8c3bd06ef1a7248c8195d050d8a4075d051256e.zip
Adding upstream version 3.16.upstream/3.16
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/_esnet/deploy.sh')
-rwxr-xr-xdocs/_esnet/deploy.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/_esnet/deploy.sh b/docs/_esnet/deploy.sh
new file mode 100755
index 0000000..223718c
--- /dev/null
+++ b/docs/_esnet/deploy.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+GIT_URL=`git remote show origin | awk '/Push URL/ { print $NF }'`
+DEPLOY_DIR=/tmp/deploy.$$
+mkdir ${DEPLOY_DIR}
+(cd ${DEPLOY_DIR} ; \
+ git clone ${GIT_URL} . \
+ && git checkout gh-pages \
+ && git rm -rf .
+)
+cp -r _build/html/* ${DEPLOY_DIR}
+touch ${DEPLOY_DIR}/.nojekyll
+(cd ${DEPLOY_DIR} ; \
+ git add .nojekyll * \
+ && git commit -m "deploy" \
+ && git push)
+
+rm -rf ${DEPLOY_DIR}