diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-21 16:54:11 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-21 16:54:11 +0200 |
commit | 53e74cf918ef0cb754f33364c716816af3a9ce3b (patch) | |
tree | 21d5d2e4509cb39136b3683ec27c05d79cfb553a | |
parent | 29aba9e9dd737ab710092540be906d3f2bfbde8e (diff) | |
download | uni-53e74cf918ef0cb754f33364c716816af3a9ce3b.tar uni-53e74cf918ef0cb754f33364c716816af3a9ce3b.tar.gz uni-53e74cf918ef0cb754f33364c716816af3a9ce3b.tar.bz2 uni-53e74cf918ef0cb754f33364c716816af3a9ce3b.tar.xz uni-53e74cf918ef0cb754f33364c716816af3a9ce3b.zip |
Added support for building zip files for uploading
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | gup/Gupfile | 4 | ||||
-rw-r--r-- | gup/abgabe.gup | 3 | ||||
-rw-r--r-- | shell.nix | 5 |
4 files changed, 12 insertions, 2 deletions
@@ -1,2 +1,4 @@ | |||
1 | **/.gup | 1 | **/.gup |
2 | 2 | ||
3 | **/*.class | ||
4 | **/abgabe.zip | ||
diff --git a/gup/Gupfile b/gup/Gupfile index 159f942..5d89a6a 100644 --- a/gup/Gupfile +++ b/gup/Gupfile | |||
@@ -1,2 +1,4 @@ | |||
1 | pdf.gup: | 1 | pdf.gup: |
2 | **/*.pdf \ No newline at end of file | 2 | |
3 | abgabe.gup: | ||
4 | **/abgabe.zip \ No newline at end of file | ||
diff --git a/gup/abgabe.gup b/gup/abgabe.gup new file mode 100644 index 0000000..3a61c7e --- /dev/null +++ b/gup/abgabe.gup | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/usr/bin/env zsh | ||
2 | |||
3 | awk -v "base=$(dirname $2)" '{ print base "/" $0; }' $(dirname $2)/manifest | xargs -t -d '\n' -- zip -j $2 | ||
@@ -3,5 +3,8 @@ | |||
3 | 3 | ||
4 | pkgs.stdenv.mkDerivation { | 4 | pkgs.stdenv.mkDerivation { |
5 | name = "uni-env"; | 5 | name = "uni-env"; |
6 | buildInputs = [ pkgs.haskellPackages.pandoc pkgs.gup ]; | 6 | buildInputs = [ pkgs.haskellPackages.pandoc |
7 | pkgs.gup | ||
8 | pkgs.zip | ||
9 | ]; | ||
7 | } | 10 | } |