diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-03 04:50:43 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-03 04:50:43 +0000 |
commit | b0987a030ff80135c941d28feb5c4d86e6c02b41 (patch) | |
tree | 50dbeefd99b06d2adf1962f657898c634f20648f /gup | |
parent | 9a708b9cf70ef3e0fcc298db2a53cecbca808227 (diff) | |
download | uni-b0987a030ff80135c941d28feb5c4d86e6c02b41.tar uni-b0987a030ff80135c941d28feb5c4d86e6c02b41.tar.gz uni-b0987a030ff80135c941d28feb5c4d86e6c02b41.tar.bz2 uni-b0987a030ff80135c941d28feb5c4d86e6c02b41.tar.xz uni-b0987a030ff80135c941d28feb5c4d86e6c02b41.zip |
Better dependencies
Diffstat (limited to 'gup')
-rw-r--r-- | gup/abgabe.gup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gup/abgabe.gup b/gup/abgabe.gup index 92fade1..049ab26 100644 --- a/gup/abgabe.gup +++ b/gup/abgabe.gup | |||
@@ -4,7 +4,7 @@ dir=$(dirname $2) | |||
4 | manifest=${dir}/manifest | 4 | manifest=${dir}/manifest |
5 | 5 | ||
6 | deps() { | 6 | deps() { |
7 | sort -u $manifest | awk -v "base=${dir}" '{ print base "/" $0; }' | 7 | sort -u $manifest | awk -v "base=${dir}" '{ print base "/" $0; }' | xargs -d '\n' -- find | filter |
8 | } | 8 | } |
9 | 9 | ||
10 | filter() { | 10 | filter() { |
@@ -17,4 +17,5 @@ EOF | |||
17 | gup --update $manifest | 17 | gup --update $manifest |
18 | 18 | ||
19 | deps | xargs gup --update | 19 | deps | xargs gup --update |
20 | { cd $dir; xargs -d '\n' -- find | filter | xargs -t -d '\n' -- zip $(basename $2) manifest } <${manifest} | 20 | |
21 | { cd $dir && xargs -d '\n' -- find | filter | xargs -t -d '\n' -- zip - manifest >$(basename $2)} <${manifest} | ||