diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-21 16:59:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-21 16:59:25 +0200 |
commit | 7b31c64e8ee37c2147535c251c0ac2b598d621e9 (patch) | |
tree | 8777b03aa6d4ba15f674d8cab697d0520e221b70 | |
parent | db8a2638b371896700223118ec32b117dcdb2f4a (diff) | |
download | uni-7b31c64e8ee37c2147535c251c0ac2b598d621e9.tar uni-7b31c64e8ee37c2147535c251c0ac2b598d621e9.tar.gz uni-7b31c64e8ee37c2147535c251c0ac2b598d621e9.tar.bz2 uni-7b31c64e8ee37c2147535c251c0ac2b598d621e9.tar.xz uni-7b31c64e8ee37c2147535c251c0ac2b598d621e9.zip |
archive creation now honors dependencies
-rw-r--r-- | gup/abgabe.gup | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gup/abgabe.gup b/gup/abgabe.gup index 3a61c7e..e5fadd4 100644 --- a/gup/abgabe.gup +++ b/gup/abgabe.gup | |||
@@ -1,3 +1,13 @@ | |||
1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
2 | 2 | ||
3 | awk -v "base=$(dirname $2)" '{ print base "/" $0; }' $(dirname $2)/manifest | xargs -t -d '\n' -- zip -j $2 | 3 | dir=$(dirname $2) |
4 | manifest=${dir}/manifest | ||
5 | |||
6 | deps() { | ||
7 | awk -v "base=${dir}" '{ print base "/" $0; }' $manifest | ||
8 | } | ||
9 | |||
10 | gup --update $manifest | ||
11 | |||
12 | deps | xargs gup --update | ||
13 | deps | xargs -t -d '\n' -- zip -j $2 $manifest | ||