summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--gup/Gupfile4
-rw-r--r--gup/abgabe.gup3
-rw-r--r--shell.nix5
4 files changed, 12 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 8a39c40..4b57565 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
1**/.gup 1**/.gup
2**/*.pdf 2**/*.pdf
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 @@
1pdf.gup: 1pdf.gup:
2 **/*.pdf \ No newline at end of file 2 **/*.pdf
3abgabe.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
3awk -v "base=$(dirname $2)" '{ print base "/" $0; }' $(dirname $2)/manifest | xargs -t -d '\n' -- zip -j $2
diff --git a/shell.nix b/shell.nix
index e9b016a..a737e97 100644
--- a/shell.nix
+++ b/shell.nix
@@ -3,5 +3,8 @@
3 3
4pkgs.stdenv.mkDerivation { 4pkgs.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}