aboutsummaryrefslogtreecommitdiff
path: root/all.gup
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-23 16:06:52 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-23 16:06:52 +0100
commit023678dc00bcc5ebb93a33cec762f48cb9cf80ff (patch)
tree778fa160e7185b576e2237ec572b7c6474207234 /all.gup
parente95dac748371afcad3ffddf5c98e5fcb0a8302b7 (diff)
downloadthermoprint-023678dc00bcc5ebb93a33cec762f48cb9cf80ff.tar
thermoprint-023678dc00bcc5ebb93a33cec762f48cb9cf80ff.tar.gz
thermoprint-023678dc00bcc5ebb93a33cec762f48cb9cf80ff.tar.bz2
thermoprint-023678dc00bcc5ebb93a33cec762f48cb9cf80ff.tar.xz
thermoprint-023678dc00bcc5ebb93a33cec762f48cb9cf80ff.zip
Autogenerate .nix files via gup & cabal2nix
Diffstat (limited to 'all.gup')
-rwxr-xr-xall.gup16
1 files changed, 16 insertions, 0 deletions
diff --git a/all.gup b/all.gup
new file mode 100755
index 0000000..b1627cb
--- /dev/null
+++ b/all.gup
@@ -0,0 +1,16 @@
1#!/usr/bin/env zsh
2
3setopt EXTENDED_GLOB
4
5typeset -a nixFiles
6nixFiles=(**/(*~(default|shell)).nix(N))
7
8for f (${nixFiles}); do
9 [[ -e ${f:r}.cabal ]] && continue
10 nixFiles=("${(@)nixFiles:#${f}}")
11done
12
13print -l ${nixFiles} | gup --contents
14for f (${nixFiles}); do
15 gup -u ${f}
16done