Skip to content
Snippets Groups Projects
Commit de9daade authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

gitlab/rel_eng: More upload.sh tweaks

parent 616ac300
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,10 @@ usage :
%.zip : %.tar.xz
echo "[tarxz->zip] $< to $@..."
tmp="$(mktemp tmp.XXX)" && \
tmp="$$(mktemp tmp.XXX)" && \
tar -C "$$tmp" -xf $< && \
cd "$$tmp" && \
zip -9 -r $@ * && \
cd .. && \
rm -R "$$tmp"
......@@ -145,7 +145,7 @@ function purge_all() {
curl -X PURGE http://downloads.haskell.org/~ghc/$dir
curl -X PURGE http://downloads.haskell.org/~ghc/$dir/
for i in *; do
purge_file $i
purge_file "$i"
done
}
......@@ -158,9 +158,9 @@ function purge_file() {
)
for dir in ${dirs[@]}; do
curl -X PURGE http://downloads.haskell.org/$dir/$i
curl -X PURGE http://downloads.haskell.org/$dir/$i/
curl -X PURGE http://downloads.haskell.org/$dir/$i/docs/
curl -X PURGE http://downloads.haskell.org/$dir/$1
curl -X PURGE http://downloads.haskell.org/$dir/$1/
curl -X PURGE http://downloads.haskell.org/$dir/$1/docs/
done
}
......@@ -213,7 +213,7 @@ function recompress() {
needed+=( "$(basename $i .tar.xz).zip" )
done
recompress-all -l ${needed[@]}
recompress-all -j10 ${needed[@]}
}
function upload_docs() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment