Skip to content

Commit

Permalink
commit 530763293 on 20211024
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRausty committed Oct 24, 2021
1 parent 1d025c5 commit 2a43fc9
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .conf/VERSIONID
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.233
0.0.234
59 changes: 59 additions & 0 deletions build.repo.build.sh.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
# Copyright 2021 (c) all rights reserved by BuildAPKs; see LICENSE
# https://buildapks.github.io published courtesy https://pages.github.com
################################################################################
set -eu
shopt -s nullglob globstar
export RDR="$HOME/buildAPKs"
if [ $# != 1 ]
then # print help
printf "\\n%s\\n\\n%s\\n\\n%s\\n\\n" "The ${0##*/} command has been tested with https://github.com/search and https://gitlab.com/explore successfully. Share addresses to sourcecode at https://github.com/BuildAPKs in order to help develop this software if you find APK repo candidates for inclusion." "EXAMPLE USAGE: ${0##*/} https://github.com/BuildAPKs/buildAPKs.entertainment" "If you find repo candidates for inclusion, please share addresses to sourcecode at https://github.com/BuildAPKs in order to help develop this software. Thank you for using ${0##*/}; Enjoy🎵🎶"
exit
fi
_COMBUILD_() {
COMPILSH="$(find "$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" -type f -name build.sh)"
if [[ -n "${COMPILSH:-}" ]]
then
for COMPFILE in $COMPILSH
do
printf '%s\n' "build.sh in directory ${COMPFILE%/*} begun"
cd "${COMPFILE%/*}" ; sh "$COMPFILE" ||:
printf '%s\n' "build.sh in directory $PWD done"
done
fi
}
_DOBUILD_() {
cd "$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" && (_IAR_ "$PWD" || _SIGNAL_ "135" "${0##*/} _CLONEBUILD_ _IAR_")
cd "$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" && printf "\\e[1;38;5;151mFound %s APK files in ~/%s/.\\n\\n\\e[0m" "$(find "$PWD" -type f -name "*apk" | wc -l)" "$(cut -d"/" -f7-99 <<< "$PWD")" && _COMBUILD_
cd "$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" && printf "\\e[1;38;5;151mFound %s APK files in ~/%s/.\\n\\n\\e[0m" "$(find "$PWD" -type f -name "*apk" | wc -l)" "$(cut -d"/" -f7-99 <<< "$PWD")"
}
_CLONEBUILD_() {
cd "$RDR/sources/$SITENAME/$LOGINAME" && git clone --depth 1 "$@" --single-branch || _SIGNAL_ "135" "${0##*/} _CLONEBUILD_ git clone"
_DOBUILD_
}
BASENAME="${@%/}" # strip trailing slash
BASENAME="${BASENAME#*//}" # strip before double slash
REPONAME="${BASENAME##*/}" # strip before last slash
LOGINAME="${BASENAME%/*}" # strip after last slash
LOGINAME="${LOGINAME##*/}" # strip before last slash
SITENAME="${BASENAME%%/*}" # strip after first slash
if [ -z "${LOGINAME:-}" ] || [ -z "${REPONAME:-}" ] || [ -z "${SITENAME:-}" ] # any variable or more is empty
then # exit
printf "%s\\n" "EXCEPTION processing $@ in directory ~/${RDR##*/}/sources/$SITENAME/$LOGINAME/$REPONAME: EXITING..."
exit 101
fi
printf "%s\\n" "Processing $@ in directory ~/${RDR##*/}/sources/$SITENAME/$LOGINAME/$REPONAME:"
. "$RDR"/scripts/bash/shlibs/buildAPKs/prep.bash
if [ -d "$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" ]
then
_DOBUILD_
elif [ -d "$RDR/sources/$SITENAME/$LOGINAME" ]
then
_CLONEBUILD_ "$@"
else
mkdir -p "$RDR/sources/$SITENAME/$LOGINAME"
_CLONEBUILD_ "$@"
fi

printf '\n%s\n\n' "Please share information about new projects found at https://github.com/BuildAPKs/db.BuildAPKs/issues and https://github.com/BuildAPKs/db.BuildAPKs/pulls in order to help this project out."
# build.repo.build.sh.bash OEF
3 changes: 2 additions & 1 deletion sha512.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1ba6beef6acc989093aa0929161b94ee0962734458e78ec5d165b85394e0c19a8cd6eec82846a35845b7934f1b1ada62e60293fa2bfc2874c15d125dffad83e9 ./.conf/VERSIONID
7e93bfd6ee4b13675e315b7dad2b9cce584ef8f2aeacd63cba1c438faedfec0759cefca4ac9b34f68e9e2d7afacfe9f15db467c92be2fdd087123c3bf999a61f ./.conf/VERSIONID
05a502a845e35bc0495a3a3006ae914785c48679dddd362bd98bd33c306ed2aa8fac57344b1b65955d41755c3967f3e991770764f6c2f14c6a52f3e52e00ef1c ./.github/FUNDING.yml
ec770c00aa2c6225a2e27e8f08bd3d1eb8882f2cde94c820ab48db0b0fb0175913cd43a851904ff015c95f1fa31bb787383608cf19eb9d34f572b5fa8f9250ab ./.github/workflows/greetings.yml
5e20f4451f28b2ad8cd03e174bafa7c5d2d08cb3d9c6364a1f36b47fa1a2ae7e222970337f1481f149b6f87894f59e113bc49924776d558f0eb0773f6eebcd56 ./.github/workflows/label.yml
Expand Down Expand Up @@ -45,3 +45,4 @@ e44c075de70c2dee808e84743a11396da986fe98cd0536980cefd6c9332e3835dc1cf9806ebda6b7
56620c222affa9f9ecf32a32b32e2f4f002f3b2357c0ab99d8959b24bdccf9a44f42f10a847e30f8280b13a0e6070b67df2cb940d78f8304ebaccc45849b2d29 ./build.repo+.bash
7f4c32e75806b23834648fe54515e3a8cca23b26ebf263d7fe439ed5e7c9da1be36b67d5ca1688f78f5dc90e98f240d011a2e5886be8f09cbd4debd3f3c5868e ./build.repo.ant.bash
b24110a0f2ce009bf42e50d4a691875d0c37496e5780d877990de642f0aa2167706c592056e4d0d61316b00de471b7f962a2c7344fdc08da425c4d42ae439209 ./build.repo.compile.sh.bash
596c732edf7bad739e06fe851136364cec2d8758f4a393328c8f609d9e8571897bb98d395773191380d38d356de9b578274647a80ad263f021a685a1fdff5d99 ./build.repo.build.sh.bash

1 comment on commit 2a43fc9

@SDRausty
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.