Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
25481a85
Commit
25481a85
authored
May 30, 2020
by
Vladislav Yarmak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipfs: static site exporter
parent
e5908991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
tools/static-export/static-export.sh
tools/static-export/static-export.sh
+34
-0
No files found.
tools/static-export/static-export.sh
0 → 100755
View file @
25481a85
#!/usr/bin/env bash
set
-euo
pipefail
((
$#
==
1
))
||
{
>
&2
echo
"Usage:
$0
<export dir>"
exit
2
}
mkdir
-p
"
$1
"
EXPORT_DIR
=
"
$(
realpath
"
$1
"
)
"
REPO_DIR
=
"
$(
realpath
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../.."
)
"
CONVERTER_PATH
=
"
${
CONVERTER_PATH
:-
$REPO_DIR
/../markdown-to-html-github-style/convert.js
}
"
CONVERTER_PATH
=
"
$(
realpath
"
$CONVERTER_PATH
"
)
"
[[
-s
"
$CONVERTER_PATH
"
]]
||
{
>
&2
echo
"convert.js not found"
exit
1
}
pushd
"
$REPO_DIR
"
git archive HEAD |
tar
x
-C
"
$EXPORT_DIR
"
popd
pushd
"
$EXPORT_DIR
"
./tools/readme-autogen/readme_autogen.py
-R
""
node
"
$CONVERTER_PATH
"
"NVENC and NvFBC patches for Nvidia drivers"
mv
-v
README.html index.html
pushd
win
node
"
$CONVERTER_PATH
"
"NVENC and NvFBC patches for Windows Nvidia drivers"
mv
-v
README.html index.html
popd
popd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment