mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
assets/shell/deploy-www.sh:deploy(): switch from TGZ back to ZIP.
This commit is contained in:
parent
4b8c0f3469
commit
dc45d81361
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PACKAGE_NAME="asciiblaster-www";
|
PACKAGE_NAME="asciiblaster-www";
|
||||||
RELEASE_DEPS="cpio find gzip rm sed tar";
|
RELEASE_DEPS="cpio find rm sed zip";
|
||||||
RELEASES_DNAME="releases";
|
RELEASES_DNAME="releases";
|
||||||
|
|
||||||
msgf() {
|
msgf() {
|
||||||
@ -15,7 +15,7 @@ deploy() {
|
|||||||
|
|
||||||
_release_version="$(sed -n '/^\s*<title>/s/^\s*<title>asciiblaster v\([0-9.]\+\)<\/title>\s*$/\1/p' index.html)";
|
_release_version="$(sed -n '/^\s*<title>/s/^\s*<title>asciiblaster v\([0-9.]\+\)<\/title>\s*$/\1/p' index.html)";
|
||||||
_release_dname="${RELEASES_DNAME}/${PACKAGE_NAME}-${_release_version}";
|
_release_dname="${RELEASES_DNAME}/${PACKAGE_NAME}-${_release_version}";
|
||||||
_release_fname="${_release_dname}.tgz";
|
_release_fname="${_release_dname}.zip";
|
||||||
|
|
||||||
find -L . \
|
find -L . \
|
||||||
-mindepth 1 \
|
-mindepth 1 \
|
||||||
@ -24,10 +24,13 @@ deploy() {
|
|||||||
-not -name '*.sw*' \
|
-not -name '*.sw*' \
|
||||||
-not -name "${0##*/}" |\
|
-not -name "${0##*/}" |\
|
||||||
cpio --quiet -dLmp "${_release_dname}";
|
cpio --quiet -dLmp "${_release_dname}";
|
||||||
tar -C "${RELEASES_DNAME}" -cpf - \
|
cd "${RELEASES_DNAME}";
|
||||||
"${_release_dname##${RELEASES_DNAME}/}" |\
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
gzip -c - > "${_release_fname}";
|
zip -9 -r "${_release_fname##${RELEASES_DNAME}/}" "${_release_dname##${RELEASES_DNAME}/}" >/dev/null;
|
||||||
rm -fr "${_release_dname}";
|
else
|
||||||
|
zip -9 -r "${_release_fname##${RELEASES_DNAME}/}" "${_release_dname##${RELEASES_DNAME}/}";
|
||||||
|
fi;
|
||||||
|
cd "${OLDPWD}"; rm -fr "${_release_dname}";
|
||||||
};
|
};
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user