summary refs log tree commit diff
path: root/pdf.zsh
blob: d9aab752ed54b2c8262dc3ddcb8be286544b08f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env zsh
set -o errexit -o nounset -o pipefail

mkdir -p pdf

fetch() {
    [[ -f "pdf/$1" ]] && return
    curl --silent --show-error --output "pdf/$1" "$2"
    echo "pdf/$1"
}

elf() {
    fetch "$1" "http://refspecs.linuxbase.org/elf/$2"
}
intel() {
    fetch "$1" "https://software.intel.com/sites/default/files/managed/$2"
}

elf abi.pdf x86_64-abi-0.99.pdf
elf elf.pdf elf.pdf
fetch multiboot.pdf 'https://www.gnu.org/software/grub/manual/multiboot/multiboot.pdf'
intel intel-64-opt.pdf 9e/bc/64-ia-32-architectures-optimization-manual.pdf
intel intel-64-sdm-vol-1.pdf a4/60/253665-sdm-vol-1.pdf
intel intel-64-sdm-vol-2.pdf a4/60/325383-sdm-vol-2abcd.pdf
intel intel-64-sdm-vol-3.pdf a4/60/325384-sdm-vol-3abcd.pdf
intel intel-64-sdm-vol-4.pdf 22/0d/335592-sdm-vol-4.pdf

chmod 444 pdf/*.pdf
ghlight'> This looks much cleaner than having to double-escape backslash. 2019-02-08Improve ANSI output and base IRC on itJune McEnroe 2019-02-08Add hi -nJune McEnroe 2019-02-08Elaborate hi man pageJune McEnroe 2019-02-08Use set for parent in hiJune McEnroe 2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe 2019-02-08Match only the basename in hiJune McEnroe 2019-02-07Add mdoc syntax to hiJune McEnroe 2019-02-07Support multi-line C macros in hiJune McEnroe 2019-02-07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe