diff options
| author | EuAndreh <eu@euandre.org> | 2020-10-04 23:21:56 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-10-04 23:21:56 -0300 |
| commit | c33f589aeaff80cc0f1d0c04216d88bab2dc119d (patch) | |
| tree | 22856624c65595c0a271948d78633b70ee656b56 | |
| parent | fake-symlinks: Also enable -x in pre-push-hook.sh (diff) | |
| download | dotfiles-c33f589aeaff80cc0f1d0c04216d88bab2dc119d.tar.gz dotfiles-c33f589aeaff80cc0f1d0c04216d88bab2dc119d.tar.xz | |
Update fake-symlinks.sh with placeholder templates and more projects
| -rw-r--r-- | bash/fake-symlinks.sh | 12 | ||||
| -rw-r--r-- | bash/templates/base-packages.nix | 22 | ||||
| -rw-r--r-- | bash/templates/i18n-pagenames.json | 3 | ||||
| -rw-r--r-- | bash/templates/metadata.json | 8 |
4 files changed, 43 insertions, 2 deletions
diff --git a/bash/fake-symlinks.sh b/bash/fake-symlinks.sh index 13c59ba3..5a4821f9 100644 --- a/bash/fake-symlinks.sh +++ b/bash/fake-symlinks.sh @@ -47,17 +47,25 @@ documented-project-fake-ln() { envsubst < .build.yml > "$HOME/dev/libre/$PROJECT/.build.yml" cp favicon.ico "$HOME/dev/libre/$PROJECT/docs/" cp LICENSE "$HOME/dev/libre/$PROJECT/" + cp base-packages.nix "$HOME/dev/libre/$PROJECT/base-packages.nix" + + if [[ ! -f "$HOME/dev/libre/$PROJECT/docs/i18n-pagenames.json" ]]; then + cp i18n-pagenames.json "$HOME/dev/libre/$PROJECT/docs/" + fi + if [[ ! -f "$HOME/dev/libre/$PROJECT/metadata.json" ]]; then + cp metadata.json "$HOME/dev/libre/$PROJECT/docs/" + fi } for r in songbooks mediator intermediauth cement; do documented-project-fake-ln "$r" "${r^}" done -for r in byopds byodb; do +for r in byopds; do documented-project-fake-ln "$r" "$(echo "$1" | tr '[:lower:]' '[:upper:]')" done -for r in boneco website dotfiles; do +for r in boneco website dotfiles euandreh-guix-channel guile-quickcheck music pdfs-da-d-maria pires swift2nix swift2nix-demo vps; do export PROJECT="$r" envsubst < simple-pre-push-hook.sh > "$HOME/dev/libre/$r/.git/hooks/pre-push" chmod +x "$HOME/dev/libre/$r/.git/hooks/pre-push" diff --git a/bash/templates/base-packages.nix b/bash/templates/base-packages.nix new file mode 100644 index 00000000..98f94043 --- /dev/null +++ b/bash/templates/base-packages.nix @@ -0,0 +1,22 @@ +{ pkgs, utils-i18n }: +with pkgs; [ + # Project-wide packages + jq + rq + nixfmt + shellcheck + direnv + niv + bats + gitstats + + # Documentation + (python3.withPackages (p: [ p.sphinx p.sphinx_rtd_theme ])) + (hunspellWithDicts (with utils-i18n.dicts; [ en pt fr ])) + utils-i18n.sphinx-intl + emacs + git + moreutils # sponge + graphviz + texlive.combined.scheme-full +] diff --git a/bash/templates/i18n-pagenames.json b/bash/templates/i18n-pagenames.json new file mode 100644 index 00000000..6b674df2 --- /dev/null +++ b/bash/templates/i18n-pagenames.json @@ -0,0 +1,3 @@ +{ + "en": {} +} diff --git a/bash/templates/metadata.json b/bash/templates/metadata.json new file mode 100644 index 00000000..fc749ede --- /dev/null +++ b/bash/templates/metadata.json @@ -0,0 +1,8 @@ +{ + "version": "master", + "project_name": "FIXME", + "description": "FIXME", + "authors": ["EuAndreh <eu@euandre.org>"], + "langs": ["en"], + "current_lang": "en" +} |
