sfx tweaks

This commit is contained in:
ed 2020-12-21 03:38:35 +01:00
parent ec8a3d8f3c
commit 9695b22f46
1 changed files with 12 additions and 1 deletions

View File

@ -115,19 +115,30 @@ f=$name/__main__.py
awk '/change the ADMIN_PWD/{o=1} o&&/return False$/{sub(/False/,"True");o=0} 1' <$f >t awk '/change the ADMIN_PWD/{o=1} o&&/return False$/{sub(/False/,"True");o=0} 1' <$f >t
tmv "$f" tmv "$f"
# cleanup junk
find . -type f |
grep -E '\.(class|bak)$' |
tr '\n' '\0' |
xargs -0 rm --
# r0c needs the docs here # r0c needs the docs here
rm -f docs/todo.md
mkdir -p share/doc/r0c/ mkdir -p share/doc/r0c/
mv docs share/doc/r0c/help mv docs share/doc/r0c/help
mkdir site-packages mkdir site-packages
mv $name share site-packages mv $name share site-packages
echo
echo creating tar echo creating tar
args=(--owner=1000 --group=1000) args=(--owner=1000 --group=1000)
[ "$OSTYPE" = msys ] && [ "$OSTYPE" = msys ] &&
args=() args=()
tar -cf tar "${args[@]}" --numeric-owner site-packages find site-packages -type f |
LC_ALL=C sort |
tar -cvf tar "${args[@]}" --numeric-owner -T-
echo
echo compressing tar echo compressing tar
# detect best level; bzip2 -7 is usually better than -9 # detect best level; bzip2 -7 is usually better than -9
for n in {2..9}; do cp tar t.$n; bzip2 -$n t.$n & done; wait; mv -v $(ls -1S t.*.bz2 | tail -n 1) tar.bz2 for n in {2..9}; do cp tar t.$n; bzip2 -$n t.$n & done; wait; mv -v $(ls -1S t.*.bz2 | tail -n 1) tar.bz2