Skip to content

Commit

Permalink
commit 975310919 on 20191126
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRausty committed Nov 26, 2019
1 parent aadfe4b commit a0ba8b2
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .conf/VERSIONID
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.5.7
4.5.8
1 change: 1 addition & 0 deletions scripts/bash/build/build.browsers.bash
5 changes: 3 additions & 2 deletions scripts/bash/build/build.buildAPKs.modules.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ _CK4MS_() { # ChecKs 4 ModuleS
}

_GSA_() { # update submodules to latest version
((printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Adding $SIAD/${GBMS[$LOC]} to ~/buildAPKs/$LOC..." && git submodule add "$SIAD/${GBMS[$LOC]}" "$LOC") && (printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Updating ~/${RDR##*/}/$LOC..." && git submodule update --init --recursive --remote "$LOC" && _IAR_ "$JDR")) || (printf "\\e[1;7;38;5;66m%s\\e[0m\\n" "Cannot add and update ~/${RDR##*/}/$LOC: Continuing...")
((printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Adding $SIAD/${GBMS[$LOC]} to ~/buildAPKs/$LOC..." && git submodule add "$SIAD/${GBMS[$LOC]}" "$LOC") && (printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Updating ~/${RDR##*/}/$LOC..." && git submodule update --init --recursive --remote "$LOC" && _IAR_ )) || (printf "\\e[1;7;38;5;66m%s\\e[0m\\n" "Cannot add and update ~/${RDR##*/}/$LOC: Continuing...")
}

_GSMU_() {
Expand All @@ -53,14 +53,15 @@ _GSMU_() {
for LOC in "${!GBMS[@]}"
do
export JDR="$RDR/$LOC"
export WDIR="$RDR/$LOC"
cd "$RDR/"
_GSU_
done
printf "\\e[1;7;38;5;114mBuildAPKs %s build.buildAPKs.modules.bash: DONE!\\e[0m\\n" "${0##*/}"
}

_GSU_() { # update submodules to latest version
((printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Updating ~/buildAPKs/$LOC..." && git submodule update --init --recursive --remote "$LOC" && _IAR_ "$JDR") || ( _GSA_ )) || (printf "\\e[1;7;38;5;66m%s\\e[0m\\n" "Cannot update ~/buildAPKs/$LOC: Continuing...") # https://www.tecmint.com/chaining-operators-in-linux-with-practical-examples/
((printf "\\e[1;7;38;5;96m%s\\e[0m\\n" "Updating ~/buildAPKs/$LOC..." && git submodule update --init --recursive --remote "$LOC" && _IAR_ ) || ( _GSA_ )) || (printf "\\e[1;7;38;5;66m%s\\e[0m\\n" "Cannot update ~/buildAPKs/$LOC: Continuing...") # https://www.tecmint.com/chaining-operators-in-linux-with-practical-examples/
if [[ -f "$JDR"/ma.bash ]]
then
. "$JDR"/ma.bash
Expand Down
74 changes: 42 additions & 32 deletions scripts/bash/build/build.github.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export RDR="$HOME/buildAPKs"
. "$RDR"/scripts/bash/init/ushlibs.bash
. "$RDR"/scripts/bash/shlibs/trap.bash 67 68 69 "${0##*/}"

_AND_ () { # writes configuration file for git repository tarball if AndroidManifest.xml file is found in git repositoryr
_AND_ () { # writes configuration file for git repository tarball if AndroidManifest.xml file is found in git repository
export CK=0
printf "%s\\n" "$COMMIT" > "$JDR/var/conf/$USER.${NAME##*/}.${COMMIT::7}.ck"
printf "%s\\n" "0" >> "$JDR/var/conf/$USER.${NAME##*/}.${COMMIT::7}.ck"
Expand All @@ -29,18 +29,28 @@ _ATT_ () {
printf "%s\\n" "Querying $USENAME $REPO ${COMMIT::7} for AndroidManifest.xml file:"
if [[ "$COMMIT" != "" ]]
then
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file
if [[ -z "${CULR:-}" ]]
then
ISAND="$(curl -u "$OAUT" -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1" -s 2>&1 | head -1024)" ||:
else
ISAND="$(curl -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1" -s 2>&1 | head -1024)" ||:
fi
if grep AndroidManifest.xml <<< "$ISAND"
then
_AND_ 0
_BUILDAPKS_
else
_NAND_
if [[ "$OAUT" != "" ]]
then
ISAND="$(curl -s -u "$OAUT" -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1")" ||:
else
ISAND="$(curl -s -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1")" ||:
fi
else
if [[ "$OAUT" != "" ]]
then
ISAND="$(curl --limit-rate "$CULR" -s -u "$OAUT" -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1")" ||:
else
ISAND="$(curl --limit-rate "$CULR" -s -i "https://api.github.com/repos/$USENAME/$REPO/git/trees/$COMMIT?recursive=1")" ||:
fi
fi
if grep AndroidManifest.xml <<< "$ISAND"
then
_AND_ 0
_BUILDAPKS_
else
_NAND_
fi
fi
elif [[ -f "${NAME##*/}.${COMMIT::7}.tar.gz" ]] && [[ ! "${F1AR[@]}" =~ "${NAME##*/}" ]] # tarfile exists and directory does not exist
Expand All @@ -59,16 +69,16 @@ _BUILDAPKS_ () { # https://developer.github.com/v3/repos/commits/
printf "\\n%s\\n" "Getting $NAME/tarball/$COMMIT -o ${NAME##*/}.${COMMIT::7}.tar.gz:"
if [[ -z "${CULR:-}" ]]
then
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file
if [[ "$OAUT" != "" ]] # see .conf/GAUTH file
then
curl -u "$OAUT" -L "$NAME/tarball/$COMMIT" -o "${NAME##*/}.${COMMIT::7}.tar.gz" || _SIGNAL_ "40" "_BUILDAPKS_"
else
curl -L "$NAME/tarball/$COMMIT" -o "${NAME##*/}.${COMMIT::7}.tar.gz" || _SIGNAL_ "42" "_BUILDAPKS_"
fi
else
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file
if [[ "$OAUT" != "" ]] # see .conf/GAUTH file
then
curl --limit-rate "$CULR" -u "$OAUT" -L "$NAME/tarball/$COMMIT" -o "${NAME##*/}.${COMMIT::7}.tar.gz" || _SIGNAL_ "40" "_BUILDAPKS_"
curl --limit-rate "$CULR" -u "$OAUT" -L "$NAME/tarball/$COMMIT" -o "${NAME##*/}.${COMMIT::7}.tar.gz" || _SIGNAL_ "40" "_BUILDAPKS_"
else
curl --limit-rate "$CULR" -L "$NAME/tarball/$COMMIT" -o "${NAME##*/}.${COMMIT::7}.tar.gz" || _SIGNAL_ "42" "_BUILDAPKS_"
fi
Expand Down Expand Up @@ -100,21 +110,21 @@ done
}

_CUTE_ () { # checks if USENAME is found in GNAMES and if it is an organization or a user
if [[ $(grep -iw "$USENAME" "$RDR/var/db/GNAMES" | awk '{print $2}') == User ]] && [[ -f "$RDR/sources/github/users/$USER/profile" ]] && [[ -f "$RDR/sources/github/users/$USER/repos" ]]
if [[ $(grep -iw "$USENAME" "$RDR/var/db/log/GNAMES" | awk '{print $2}') == User ]] && [[ -f "$RDR/sources/github/users/$USER/profile" ]] && [[ -f "$RDR/sources/github/users/$USER/repos" ]]
then
export ISUSER=users
export ISOTUR=users
export USENAME="$(grep -iw "$USENAME" "$RDR/var/db/GNAMES" | awk '{print $1}')"
export JDR="$RDR/sources/github/$ISOTUR/$USER"
export JID="git.$ISOTUR.$USER"
elif [[ $(grep -iw "$USENAME" "$RDR/var/db/GNAMES" | awk '{print $2}') == Organization ]] && [[ -f "$RDR/sources/github/orgs/$USER/profile" ]] && [[ -f "$RDR/sources/github/orgs/$USER/repos" ]]
elif [[ $(grep -iw "$USENAME" "$RDR/var/db/log/GNAMES" | awk '{print $2}') == Organization ]] && [[ -f "$RDR/sources/github/orgs/$USER/profile" ]] && [[ -f "$RDR/sources/github/orgs/$USER/repos" ]]
then
export ISUSER=users
export ISOTUR=orgs
export USENAME="$(grep -iw "$USENAME" "$RDR/var/db/GNAMES" | awk '{print $1}')"
export JDR="$RDR/sources/github/$ISOTUR/$USER"
export JID="git.$ISOTUR.$USER"
else # get USENAME and type of USENAME from GitHub
else # get login and type of login from GitHub
mapfile -t TYPE < <(curl "https://api.github.com/users/$USENAME")
if [[ "${TYPE[1]}" == *\"message\":\ \"Not\ Found\"* ]]
then
Expand All @@ -126,8 +136,8 @@ _CUTE_ () { # checks if USENAME is found in GNAMES and if it is an organization
_SIGNAL_ "71" "${TYPE[17]} undefined!" "71"
exit 34
fi) || (_SIGNAL_ "72" "TYPE[17]: unbound variable" "72")
USENAME="$(printf "%s" "${TYPE[1]}" | sed 's/"//g' | sed 's/,//g' | awk '{print $2}')" || _SIGNAL_ "73" "_CUTE_ \$USENAME"
NAPKS="$(printf "%s" "${TYPE[17]}" | sed 's/"//g' | sed 's/,//g' | awk '{print $2}')" || (_SIGNAL_ "74" "_CUTE_ \$NAPKS: create \$NAPKS failed; Exiting..." 24)
export USENAME="$(printf "%s" "${TYPE[1]}" | sed 's/"//g' | sed 's/,//g' | awk '{print $2}')" || _SIGNAL_ "73" "_CUTE_ \$USENAME"
export NAPKS="$(printf "%s" "${TYPE[17]}" | sed 's/"//g' | sed 's/,//g' | awk '{print $2}')" || (_SIGNAL_ "74" "_CUTE_ \$NAPKS: create \$NAPKS failed; Exiting..." 24)
if [[ "${TYPE[17]}" == *User* ]]
then
export ISUSER=users
Expand All @@ -144,7 +154,7 @@ _CUTE_ () { # checks if USENAME is found in GNAMES and if it is an organization
fi
printf "%s\\n" "${TYPE[@]}" > "$JDR"/profile
_MKJDC_
_NAMESMAINBLOCK_ CNAMES
_NAMESMAINBLOCK_ CNAMES GNAMES log/GNAMES
fi
printf "%s\\n" "Processing $USENAME:"
KEYT=("\"login\"" "\"id\"" "\"type\"" "\"name\"" "\"company\"" "\"blog\"" "\"location\"" "\"hireable\"" "\"bio\"" "\"public_repos\"" "\"public_gists\"" "\"followers\"" "\"following\"" "\"created_at\"" )
Expand All @@ -154,20 +164,20 @@ _CUTE_ () { # checks if USENAME is found in GNAMES and if it is an organization
done
_WAKELOCK_
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.st
RCT="$(grep public_repos "$JDR/profile" | sed 's/\,//g' | sed 's/\"//g' | awk '{print $2}')"
RPCT="$(($RCT/100))"
RCT="$(grep public_repos "$JDR/profile" | sed 's/\,//g' | sed 's/\"//g' | awk '{print $2}')" # repository count
RPCT="$(($RCT/100))" # repository page count
if [[ $(($RCT%100)) -gt 0 ]] # there is a remainder
then # add one more page
then # add one more page to total reqest
RPCT="$(($RPCT+1))"
fi
if [[ ! -f "$JDR/repos" ]]
then
until [[ $RPCT -eq 0 ]]
do
if [[ ! -f "$JDR/repos" ]] # file repos does not exist
then # get repository information
until [[ $RPCT -eq 0 ]] # there are zero pages remaining
do # get a page of repository information
printf "%s\\n" "Downloading GitHub $USENAME page $RPCT repositories information: "
if [[ -z "${CULR:-}" ]]
if [[ -z "${CULR:-}" ]] # curl --limit-rate is not set
then
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file for information
if [[ "$OAUT" != "" ]] # see .conf/GAUTH file for information
then
curl -u "$OAUT" "https://api.github.com/$ISUSER/$USER/repos?per_page=100&page=$RPCT" > "$JDR/var/conf/repos.tmp"
cat "$JDR/var/conf/repos.tmp" >> "$JDR/repos"
Expand All @@ -176,7 +186,7 @@ _CUTE_ () { # checks if USENAME is found in GNAMES and if it is an organization
cat "$JDR/var/conf/repos.tmp" >> "$JDR/repos"
fi
else
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file for information
if [[ "$OAUT" != "" ]]
then
curl --limit-rate "$CULR" -u "$OAUT" "https://api.github.com/$ISUSER/$USER/repos?per_page=100&page=$RPCT" > "$JDR/var/conf/repos.tmp"
cat "$JDR/var/conf/repos.tmp" >> "$JDR/repos"
Expand Down Expand Up @@ -205,7 +215,7 @@ _FJDX_ () {
}

_GC_ () {
if [[ "$OAUT" != "" ]] # see $RDR/.conf/GAUTH file for information
if [[ "$OAUT" != "" ]] # see .conf/GAUTH file for information
then # https://unix.stackexchange.com/questions/117992/download-only-first-few-bytes-of-a-source-page
curl -u "$OAUT" https://api.github.com/repos/"$USER/$REPO"/commits -s 2>&1 | head -n 3 | tail -n 1 | awk '{ print $2 }' | sed 's/"//g' | sed 's/,//g'
else
Expand Down
49 changes: 42 additions & 7 deletions scripts/bash/build/build.github.topics.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,62 @@ export TOPNAME="${TOPIC,,}"
export JDR="$RDR/sources/github/topics/$TOPIC"
export JID="git.$TOPIC"
export OAUT="$(cat "$RDR/.conf/GAUTH" | awk 'NR==1')"
echo $OAUT
export RDR="$HOME/buildAPKs"
export STRING="ERROR FOUND; build.github.topics.bash $1: CONTINUING... "
printf "\\n\\e[1;38;5;116m%s\\n\\e[0m" "${0##*/}: Beginning BuildAPKs with build.github.topics.bash $1:"
_RPCT_() {
RCT="$(sed 's/\,//g' <<< "${THD[1]##*:}")"
RPCT="$(($RCT/100))" # repository page count
if [[ $(($RCT%100)) -gt 0 ]] # there is a remainder
then # add one more page to total requested
export RPCT="$(($RPCT+1))"
fi
printf "%s\\n" "Found $RPCT pages of results."
if [[ $RPCT -gt 10 ]] # greater than 1000 search results
then # enforce https://developer.github.com/v3/search/ limit
printf "%s\\n" "Limiting to 10 pages of results."
export RPCT=10
fi
}
printf "\\n\\e[1;38;5;116m%s\\n\\e[0m" "${0##*/}: Beginning BuildAPKs with build.github.topics.bash $@:"
if [[ ! -d "$JDR" ]]
then
mkdir -p "$JDR"
fi
if [[ ! -f "$JDR"/topic ]]
then
printf "%s\\n" "Downloading GitHub $TOPNAME topic repositories information:"
if [[ "$OAUT" != "" ]] # see $RDR/var/conf/GAUTH file for information
then
curl -u "$OAUT" -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" -o "$JDR"/topic
if [[ ! -z "$OAUT" ]] # see .conf/GAUTH file for information
then # use https://github.com/settings/tokens to create tokens
mapfile -t THD < <(curl -u "$OAUT" -sH "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" | head -n 2 ) # total count
RCT="$(sed 's/\,//g' <<< "${THD[1]##*:}")"
_RPCT_
until [[ $RPCT -eq 0 ]] # there are zero pages remaining
do # get a page of repository information
printf "%s\\n" "Downloading GitHub $TOPNAME page $RPCT topic repositories information: "
curl -u "$OAUT" -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?per_page=100&page=$RPCT&q=topic:$TOPIC+language:Java&sort=forks&order=desc" > "$JDR/topic.tmp"
cat "$JDR/topic.tmp" >> "$JDR/topic"
RPCT="$(($RPCT-1))"
sleep "0.${RANDOM::3}"
done
else
curl -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" -o "$JDR"/topic
mapfile -t THD < <(curl -sH "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" | head -n 2 ) # total count
RCT="$(sed 's/\,//g' <<< "${THD[1]##*:}")"
_RPCT_
until [[ $RPCT -eq 0 ]] # there are zero pages remaining
do # get a page of repository information
printf "%s\\n" "Downloading GitHub $TOPNAME page $RPCT topic repositories information: "
curl -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?per_page=100&page=$RPCT&q=topic:$TOPIC+language:Java&sort=stars&order=desc" > "$JDR/topic.tmp"
cat "$JDR/topic.tmp" >> "$JDR/topic"
RPCT="$(($RPCT-1))"
sleep "0.${RANDOM::3}"
done
fi
rm -f "$JDR/topic.tmp"
fi
TARR=($(grep -v JavaScript "$JDR"/topic | grep -B 5 Java | grep svn_url | awk -v x=2 '{print $x}' | sed 's/\,//g' | sed 's/\"//g' | sed 's/https\:\/\/github.com\///g' | cut -d\/ -f1)) # creates array of Java language repositories for topic
for NAME in "${TARR[@]}"
do
"$RDR"/scripts/bash/build/build.github.bash "$NAME"
"$RDR"/scripts/bash/build/build.github.bash "$NAME"
done
. "$RDR"/scripts/bash/shlibs/lock.bash wake.stop
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.gt
Expand Down
51 changes: 51 additions & 0 deletions scripts/bash/build/build.github.topics30.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/env bash
# Copyright 2019 (c) all rights reserved
# by BuildAPKs https://buildapks.github.io/buildAPKs/
#####################################################################
set -Eeuo pipefail
shopt -s nullglob globstar
export RDR="$HOME/buildAPKs"
. "$RDR"/scripts/bash/init/ushlibs.bash
. "$RDR"/scripts/bash/shlibs/trap.bash 77 78 79 "${0##*/}"
if [[ -z "${1:-}" ]]
then
printf "\\e[1;7;38;5;203m%s\\e[1;7;38;5;201m%s\\e[1;7;38;5;203m%s\\e[1;7;38;5;201m%s\\e[1;7;38;5;203m%s\\e[1;7;38;5;201m%s\\e[1;7;38;5;203m%s\\n\\e[0m\\n" "GitHub topic name must be provided; See " "~/${RDR##*/}/var/conf/TNAMES" " for topic names that build APKs on device with BuildAPKs! To build all the topic names contained in this file run " "for NAME in \$(cat ~/${RDR##*/}/var/conf/TNAMES) ; do ~/${RDR##*/}/scripts/bash/build/${0##*/} \$NAME ; done" ". File " "~/${RDR##*/}/var/conf/GAUTH" " has important information should you choose to run this command regarding bandwidth supplied by GitHub. "
exit 4
fi
if [[ -z "${NUM:-}" ]]
then
export NUM="$(date +%s)"
fi
. "$RDR"/scripts/bash/shlibs/lock.bash wake.lock
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.st
export TOPI="${1%/}"
export TOPIC="${TOPI##*/}"
export TOPNAME="${TOPIC,,}"
export JDR="$RDR/sources/github/topics/$TOPIC"
export JID="git.$TOPIC"
export OAUT="$(cat "$RDR/.conf/GAUTH" | awk 'NR==1')"
export RDR="$HOME/buildAPKs"
export STRING="ERROR FOUND; build.github.topics.bash $1: CONTINUING... "
printf "\\n\\e[1;38;5;116m%s\\n\\e[0m" "${0##*/}: Beginning BuildAPKs with build.github.topics.bash $1:"
if [[ ! -d "$JDR" ]]
then
mkdir -p "$JDR"
fi
if [[ ! -f "$JDR"/topic ]]
then
printf "%s\\n" "Downloading GitHub $TOPNAME topic repositories information:"
if [[ "$OAUT" != "" ]] # see $RDR/var/conf/GAUTH file for information
then
curl -u "$OAUT" -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" -o "$JDR"/topic
else
curl -H "Accept: application/vnd.github.mercy-preview+json" "https://api.github.com/search/repositories?q=topic:$TOPIC+language:Java" -o "$JDR"/topic
fi
fi
TARR=($(grep -v JavaScript "$JDR"/topic | grep -B 5 Java | grep svn_url | awk -v x=2 '{print $x}' | sed 's/\,//g' | sed 's/\"//g' | sed 's/https\:\/\/github.com\///g' | cut -d\/ -f1)) # creates array of Java language repositories for topic
for NAME in "${TARR[@]}"
do
"$RDR"/scripts/bash/build/build.github.bash "$NAME"
done
. "$RDR"/scripts/bash/shlibs/lock.bash wake.stop
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.gt
# build.github.topics.bash EOF
50 changes: 8 additions & 42 deletions scripts/bash/build/build.in.dir.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,20 @@
#####################################################################
set -Eeuo pipefail
shopt -s nullglob globstar

_SBDBTRPERROR_() { # Run on script error.
local RV="$?"
printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs %s ERROR: Signal %s received!\\e[0m\\n" "${0##*/}" "$RV"
set +Eeuo pipefail
exit 201
}

_SBDBTRPEXIT_() { # Run on exit.
printf "\\e[?25h\\e[0m"
set +Eeuo pipefail
exit
}

_SBDBTRPSIGNAL_() { # Run on signal.
local RV="$?"
printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs %s WARNING: Signal %s received!\\e[0m\\n" "${0##*/}" "$RV"
printf "\\e[?25h\\e[0m"
set +Eeuo pipefail
exit 211
}

_SBDBTRPQUIT_() { # Run on quit.
local RV="$?"
printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs %s WARNING: Quit signal %s received!\\e[0m\\n" "${0##*/}" "$RV"
exit 221
}

trap '_SBDBTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
trap _SBDBTRPEXIT_ EXIT
trap _SBDBTRPSIGNAL_ HUP INT TERM
trap _SBDBTRPQUIT_ QUIT

export DAY="$(date +%Y%m%d)"
export JAD=""
export JID="in.dir.${PWD##*/}"
export NUM="$(date +%s)"
export JDR="$PWD"
export RDR="$HOME/buildAPKs"
if [[ "$HOME" = "$PWD" ]]
if [[ "$HOME" = "$JDR" ]]
then
printf "\\n\\e[1;7;38;5;0mbuildAPKs %s WARNING: Cannot run in %s! Signal 224 generated by %s in %s.\\e[0m\\n\\n" "${0##*/}" "$HOME" "${0##*/}" "$PWD"
exit 224
fi
JDR="$PWD"
. "$RDR"/scripts/bash/init/ushlibs.bash
. "$RDR"/scripts/bash/shlibs/lock.bash
export DAY="$(date +%Y%m%d)"
export JID="in.dir.${JDR##*/}"
export NUM="$(date +%s)"
. "$RDR"/scripts/bash/init/ushlibs.bash
. "$RDR"/scripts/bash/shlibs/trap.bash 201 211 221 "${0##*/}" wake.start
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.st
. "$RDR"/scripts/bash/shlibs/buildAPKs/fandm.bash
_ANDB_ "$JDR"
_ANDB_
. "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.gt
# build.in.dir.bash EOF

0 comments on commit a0ba8b2

Please sign in to comment.