mirror of
https://github.com/system76/firmware-open.git
synced 2025-07-03 21:03:23 +00:00
Remove READMEs that are just directory listings
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
b3a8a7ddab
commit
8ff8a75096
7 changed files with 0 additions and 126 deletions
|
@ -1,7 +0,0 @@
|
|||
# Applications
|
||||
|
||||
## Contents
|
||||
|
||||
- [firmware-setup](https://github.com/system76/firmware-setup.git) - System76 Firmware Setup
|
||||
- [firmware-update](https://github.com/system76/firmware-update.git) - System76 Firmware Update
|
||||
- [gop-policy](https://github.com/system76/gop-policy.git) - System76 Platform GOP Policy
|
|
@ -1 +0,0 @@
|
|||
# Applications
|
|
@ -1,52 +0,0 @@
|
|||
# Models
|
||||
|
||||
## Contents
|
||||
|
||||
- [addw1](./addw1) - System76 Adder Workstation (addw1)
|
||||
- [addw2](./addw2) - System76 Adder WS (addw2)
|
||||
- [addw3](./addw3) - System76 Adder WS (addw3)
|
||||
- [addw4](./addw4) - System76 Adder WS (addw4)
|
||||
- [bonw14](./bonw14) - System76 Bonobo WS (bonw14)
|
||||
- [bonw15](./bonw15) - System76 Bonobo WS (bonw15)
|
||||
- [bonw15-b](./bonw15-b) - System76 Bonobo WS (bonw15-b)
|
||||
- [darp10](./darp10) - System76 Darter Pro (darp10)
|
||||
- [darp10-b](./darp10-b) - System76 Darter Pro (darp10-b)
|
||||
- [darp5](./darp5) - System76 Darter Pro (darp5)
|
||||
- [darp6](./darp6) - System76 Darter Pro (darp6)
|
||||
- [darp7](./darp7) - System76 Darter Pro (darp7)
|
||||
- [darp8](./darp8) - System76 Darter Pro (darp8)
|
||||
- [darp9](./darp9) - System76 Darter Pro (darp9)
|
||||
- [galp2](./galp2) - System76 Galago Pro (galp2)
|
||||
- [galp3](./galp3) - System76 Galago Pro (galp3)
|
||||
- [galp3-b](./galp3-b) - System76 Galago Pro (galp3-b)
|
||||
- [galp3-c](./galp3-c) - System76 Galago Pro (galp3-c)
|
||||
- [galp4](./galp4) - System76 Galago Pro (galp4)
|
||||
- [galp5](./galp5) - System76 Galago Pro (galp5)
|
||||
- [galp6](./galp6) - System76 Galago Pro (galp6)
|
||||
- [galp7](./galp7) - System76 Galago Pro (galp7)
|
||||
- [gaze14_1650](./gaze14_1650) - System76 Gazelle (gaze14)
|
||||
- [gaze14_1660ti](./gaze14_1660ti) - System76 Gazelle (gaze14)
|
||||
- [gaze15](./gaze15) - System76 Gazelle (gaze15)
|
||||
- [gaze16-3050](./gaze16-3050) - System76 Gazelle (gaze16)
|
||||
- [gaze16-3060](./gaze16-3060) - System76 Gazelle (gaze16)
|
||||
- [gaze16-3060-b](./gaze16-3060-b) - System76 Gazelle (gaze16)
|
||||
- [gaze17-3050](./gaze17-3050) - System76 Gazelle (gaze17)
|
||||
- [gaze17-3060-b](./gaze17-3060-b) - System76 Gazelle (gaze17-3060-b)
|
||||
- [gaze18](./gaze18) - System76 Gazelle (gaze18)
|
||||
- [lemp10](./lemp10) - System76 Lemur Pro (lemp10)
|
||||
- [lemp11](./lemp11) - System76 Lemur Pro (lemp11)
|
||||
- [lemp12](./lemp12) - System76 Lemur Pro (lemp12)
|
||||
- [lemp13](./lemp13) - System76 Lemur Pro (lemp13)
|
||||
- [lemp13-b](./lemp13-b) - System76 Lemur Pro (lemp13-b)
|
||||
- [lemp9](./lemp9) - System76 Lemur Pro (lemp9)
|
||||
- [meer9](./meer9) - System76 Meerkat (meer9)
|
||||
- [oryp10](./oryp10) - System76 Oryx Pro (oryp10)
|
||||
- [oryp11](./oryp11) - System76 Oryx Pro (oryp11)
|
||||
- [oryp12](./oryp12) - System76 Oryx Pro (oryp12)
|
||||
- [oryp5](./oryp5) - System76 Oryx Pro (oryp5)
|
||||
- [oryp6](./oryp6) - System76 Oryx Pro (oryp6)
|
||||
- [oryp7](./oryp7) - System76 Oryx Pro (oryp7)
|
||||
- [oryp8](./oryp8) - System76 Oryx Pro (oryp8)
|
||||
- [oryp9](./oryp9) - System76 Oryx Pro (oryp9)
|
||||
- [qemu](./qemu) - QEMU (Virtualization)
|
||||
- [serw13](./serw13) - System76 Serval WS (serw13)
|
|
@ -1 +0,0 @@
|
|||
# Models
|
|
@ -1,11 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
README_DIRS=(
|
||||
apps
|
||||
models
|
||||
tools
|
||||
)
|
||||
|
||||
set -e
|
||||
|
||||
cargo build --release -p modeltool
|
||||
|
@ -25,50 +19,3 @@ for dir in models/*/
|
|||
do
|
||||
readme_model "${dir%/}"
|
||||
done
|
||||
|
||||
readme_line() {
|
||||
echo -e " \x1B[1m$1\x1B[0m" >&2
|
||||
|
||||
name="$(basename "$1")"
|
||||
description=""
|
||||
|
||||
readme="$(find "$1" -maxdepth 1 -iname README.md)"
|
||||
if [ -n "$readme" ]
|
||||
then
|
||||
# Get first line, removing the trailing pounds and spaces
|
||||
description=" - $(head -n 1 "$readme" | sed -e 's/^[#[:space:]]*//')"
|
||||
fi
|
||||
|
||||
submodule="$(git submodule status "$1" 2> /dev/null | cut -d ' ' -f 3 || true)"
|
||||
if [ "$submodule" = "$1" ]
|
||||
then
|
||||
# Link to submodule URL
|
||||
origin="$(git -C "$1" remote get-url origin)"
|
||||
echo "- [$name]($origin)$description"
|
||||
else
|
||||
# Link to directory
|
||||
echo "- [$name](./$1)$description"
|
||||
fi
|
||||
}
|
||||
|
||||
readme_dir() {
|
||||
echo -e "\x1B[1m$1\x1B[0m" >&2
|
||||
|
||||
pushd "$1" > /dev/null
|
||||
cp README.md.in README.md
|
||||
|
||||
echo -e "\n## Contents\n" >> README.md
|
||||
for dir in */
|
||||
do
|
||||
if ! git check-ignore --quiet "${dir}"
|
||||
then
|
||||
readme_line "${dir%/}" >> README.md
|
||||
fi
|
||||
done
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
for dir in "${README_DIRS[@]}"
|
||||
do
|
||||
readme_dir "$dir"
|
||||
done
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
# Tools
|
||||
|
||||
## Contents
|
||||
|
||||
- [apobtool](https://github.com/system76/apobtool.git)
|
||||
- [coreboot-collector](https://github.com/system76/coreboot-collector.git) - coreboot-collector
|
||||
- [intel-spi](https://github.com/system76/intel-spi.git) - intel-spi
|
||||
- [ipxe](https://github.com/ipxe/ipxe.git)
|
||||
- [MEAnalyzer](https://github.com/platomav/MEAnalyzer.git) - ME Analyzer
|
||||
- [modeltool](./modeltool)
|
||||
- [UEFITool](https://github.com/LongSoft/UEFITool.git) - UEFITool
|
|
@ -1 +0,0 @@
|
|||
# Tools
|
Loading…
Add table
Add a link
Reference in a new issue