mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
asciiblaster-www/: added to repository.
.gitignore: ignore asciiblaster-www/releases/*. asciiblaster-{cordoba,nw,www}/deploy.sh, assets/shell/: melp? index.html: add version to <title>.
This commit is contained in:
parent
2287a8368b
commit
401b7a408c
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ asciiblaster-cordoba/platforms/android/app/build
|
|||||||
asciiblaster-cordoba/platforms/android/CordovaLib/build
|
asciiblaster-cordoba/platforms/android/CordovaLib/build
|
||||||
asciiblaster-cordoba/releases/*
|
asciiblaster-cordoba/releases/*
|
||||||
asciiblaster-nw/releases/*
|
asciiblaster-nw/releases/*
|
||||||
|
asciiblaster-www/releases/*
|
||||||
|
1
asciiblaster-cordoba/deploy.sh
Symbolic link
1
asciiblaster-cordoba/deploy.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../assets/shell/deploy-cordoba.sh
|
1
asciiblaster-nw/deploy.sh
Symbolic link
1
asciiblaster-nw/deploy.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../assets/shell/deploy-nwjs.sh
|
1
asciiblaster-www/assets
Symbolic link
1
asciiblaster-www/assets
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../assets
|
1
asciiblaster-www/deploy.sh
Symbolic link
1
asciiblaster-www/deploy.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../assets/shell/deploy-www.sh
|
1
asciiblaster-www/index.html
Symbolic link
1
asciiblaster-www/index.html
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../index.html
|
38
assets/shell/deploy-all.sh
Executable file
38
assets/shell/deploy-all.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
|
||||||
|
msgf() {
|
||||||
|
local _fmt="${1}"; shift;
|
||||||
|
printf "%s >>> ${_fmt}\n" "$(date +"%d-%^b-%Y %H:%M:%S")" "${@}";
|
||||||
|
};
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage: ${0} [-h] [-v]" >&2;
|
||||||
|
echo " -h.........: show this screen" >&2;
|
||||||
|
echo " -v.........: be verbose" >&2;
|
||||||
|
};
|
||||||
|
|
||||||
|
main() {
|
||||||
|
local _cmd="" _build="" _opt="" _vflag=0;
|
||||||
|
while getopts hv _opt; do
|
||||||
|
case "${_opt}" in
|
||||||
|
h) usage; exit 0; ;;
|
||||||
|
v) _vflag=1; ;;
|
||||||
|
*) usage; exit 1; ;;
|
||||||
|
esac; done;
|
||||||
|
shift $((${OPTIND}-1));
|
||||||
|
for _build in cordoba nwjs www; do
|
||||||
|
msgf "Deploying ${_build}...";
|
||||||
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
|
./assets/shell/deploy-${_build}.sh "${@}";
|
||||||
|
else
|
||||||
|
./assets/shell/deploy-${_build}.sh -v "${@}";
|
||||||
|
fi;
|
||||||
|
msgf "Deployed ${_build}.";
|
||||||
|
done;
|
||||||
|
};
|
||||||
|
|
||||||
|
set -o errexit -o noglob;
|
||||||
|
main "${@}";
|
||||||
|
|
||||||
|
# vim:foldmethod=marker sw=8 ts=8 tw=120
|
@ -21,7 +21,7 @@ subst() {
|
|||||||
echo "${_string_}";
|
echo "${_string_}";
|
||||||
};
|
};
|
||||||
|
|
||||||
release() {
|
deploy() {
|
||||||
local _platform="${1}" _vflag="${2}" _release_dname_src="" _release_type="" _release_version="";
|
local _platform="${1}" _vflag="${2}" _release_dname_src="" _release_type="" _release_version="";
|
||||||
|
|
||||||
_release_dname_src="$(subst "${RELEASES_DNAME_SRC}" "%CORDOBA_PLATFORM%" "${_platform}")";
|
_release_dname_src="$(subst "${RELEASES_DNAME_SRC}" "%CORDOBA_PLATFORM%" "${_platform}")";
|
||||||
@ -65,9 +65,9 @@ main() {
|
|||||||
for _platform in ${_platforms:-${CORDOBA_PLATFORMS}}; do
|
for _platform in ${_platforms:-${CORDOBA_PLATFORMS}}; do
|
||||||
msgf "Building ${_platform} release...";
|
msgf "Building ${_platform} release...";
|
||||||
if [ "${_vflag:-0}" -eq 0 ]; then
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
release "${_platform}" "${_vflag}" >/dev/null;
|
deploy "${_platform}" "${_vflag}" >/dev/null;
|
||||||
else
|
else
|
||||||
release "${_platform}" "${_vflag}";
|
deploy "${_platform}" "${_vflag}";
|
||||||
fi;
|
fi;
|
||||||
msgf "Built ${_platform} release.";
|
msgf "Built ${_platform} release.";
|
||||||
done;
|
done;
|
@ -35,7 +35,7 @@ subst() {
|
|||||||
echo "${_string_}";
|
echo "${_string_}";
|
||||||
};
|
};
|
||||||
|
|
||||||
release() {
|
deploy() {
|
||||||
local _platform="${1}" _vflag="${2}" _nwjs_fname="" _nwjs_subdir="" _nwjs_url="" \
|
local _platform="${1}" _vflag="${2}" _nwjs_fname="" _nwjs_subdir="" _nwjs_url="" \
|
||||||
_release_fname="" _release_dname="" _release_version="";
|
_release_fname="" _release_dname="" _release_version="";
|
||||||
|
|
||||||
@ -107,9 +107,9 @@ main() {
|
|||||||
for _platform in ${_platforms:-${NWJS_PLATFORMS}}; do
|
for _platform in ${_platforms:-${NWJS_PLATFORMS}}; do
|
||||||
msgf "Building ${_platform} release...";
|
msgf "Building ${_platform} release...";
|
||||||
if [ "${_vflag:-0}" -eq 0 ]; then
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
release "${_platform}" "${_vflag}" >/dev/null;
|
deploy "${_platform}" "${_vflag}" >/dev/null;
|
||||||
else
|
else
|
||||||
release "${_platform}" "${_vflag}";
|
deploy "${_platform}" "${_vflag}";
|
||||||
fi;
|
fi;
|
||||||
msgf "Built ${_platform} release.";
|
msgf "Built ${_platform} release.";
|
||||||
done;
|
done;
|
66
assets/shell/deploy-www.sh
Executable file
66
assets/shell/deploy-www.sh
Executable file
@ -0,0 +1,66 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
|
||||||
|
PACKAGE_NAME="asciiblaster-www";
|
||||||
|
RELEASE_DEPS="cpio find gzip rm sed tar";
|
||||||
|
RELEASES_DNAME="releases";
|
||||||
|
|
||||||
|
msgf() {
|
||||||
|
local _fmt="${1}"; shift;
|
||||||
|
printf "%s >>> ${_fmt}\n" "$(date +"%d-%^b-%Y %H:%M:%S")" "${@}";
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy() {
|
||||||
|
local _vflag="${1}" _release_fname="" _release_dname="" _release_version="";
|
||||||
|
|
||||||
|
_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_fname="${_release_dname}.tgz";
|
||||||
|
|
||||||
|
find -L . \
|
||||||
|
-mindepth 1 \
|
||||||
|
-not -path "./${RELEASES_DNAME}/*" \
|
||||||
|
-not -path "./${RELEASES_DNAME}" \
|
||||||
|
-not -name '*.sw*' \
|
||||||
|
-not -name "${0##*/}" |\
|
||||||
|
cpio --quiet -dLmp "${_release_dname}";
|
||||||
|
tar -C "${RELEASES_DNAME}" -cpf - \
|
||||||
|
"${_release_dname##${RELEASES_DNAME}/}" |\
|
||||||
|
gzip -c - > "${_release_fname}";
|
||||||
|
rm -fr "${_release_dname}";
|
||||||
|
};
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage: ${0} [-h] [-v]" >&2;
|
||||||
|
echo " -h.........: show this screen" >&2;
|
||||||
|
echo " -v.........: be verbose" >&2;
|
||||||
|
};
|
||||||
|
|
||||||
|
main() {
|
||||||
|
local _cmd="" _opt="" _vflag=0;
|
||||||
|
while getopts hv _opt; do
|
||||||
|
case "${_opt}" in
|
||||||
|
h) usage; exit 0; ;;
|
||||||
|
v) _vflag=1; ;;
|
||||||
|
*) usage; exit 1; ;;
|
||||||
|
esac; done;
|
||||||
|
shift $((${OPTIND}-1));
|
||||||
|
for _cmd in ${RELEASE_DEPS}; do
|
||||||
|
if ! which "${_cmd}" >/dev/null; then
|
||||||
|
echo "error: missing prerequisite command \`${_cmd}'";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
done;
|
||||||
|
msgf "Building release...";
|
||||||
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
|
deploy "${_vflag}" >/dev/null;
|
||||||
|
else
|
||||||
|
deploy "${_vflag}";
|
||||||
|
fi;
|
||||||
|
msgf "Built release.";
|
||||||
|
};
|
||||||
|
|
||||||
|
set -o errexit -o noglob;
|
||||||
|
main "${@}";
|
||||||
|
|
||||||
|
# vim:foldmethod=marker sw=8 ts=8 tw=120
|
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>asciiblaster</title>
|
<title>asciiblaster v1.0.3</title>
|
||||||
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=yes" />
|
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=yes" />
|
||||||
<link rel="stylesheet" href="assets/css/sally.css" type="text/css" charset="utf-8" />
|
<link rel="stylesheet" href="assets/css/sally.css" type="text/css" charset="utf-8" />
|
||||||
<link rel="stylesheet" href="assets/css/ak.css" type="text/css" charset="utf-8" />
|
<link rel="stylesheet" href="assets/css/ak.css" type="text/css" charset="utf-8" />
|
||||||
|
Loading…
Reference in New Issue
Block a user