You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.repo.bash
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,28 @@ if [ $# != 1 ]
9
9
then
10
10
printf"\\n%s\\n\\n%s\\n\\n""The '${0##*/}' command has been tested with https://github.com/search and https://gitlab.com/explore successfully. Please share addresses to sourcecode at https://github.com/BuildAPKs in order to help develop this topic if you find repo candidates for inclusion.""EXAMPLE USAGE: '${0##*/} https://github.com/BuildAPKs/buildAPKs.entertainment'"&&exit
11
11
fi
12
+
_CLONEBUILD_() {
13
+
cd"$RDR/sources/$SITENAME/$LOGINAME"
14
+
git clone --depth 1 "$@" --single-branch
15
+
cd"$REPONAME"
16
+
"$RDR/scripts/bash/build/build.in.dir.bash"
17
+
}
12
18
BASENAME="${@%/}"# strip trailing slash
19
+
BASENAME="${BASENAME#*//}"# strip before double slash
13
20
REPONAME="${BASENAME##*/}"# strip before last slash
14
21
LOGINAME="${BASENAME%/*}"# strip after last slash
15
22
LOGINAME="${LOGINAME##*/}"# strip before last slash
16
-
BASENAME="${BASENAME#*//}"# strip before double slash
17
23
SITENAME="${BASENAME%%/*}"# strip after first slash
18
24
printf"%s\\n""Processing $@ in directory ~/${RDR##*/}/sources/$SITENAME/$LOGINAME/$REPONAME:"
19
-
if [ -d"$RDR/sources/$SITENAME/$LOGINAME" ]
25
+
if [ -d"$RDR/sources/$SITENAME/$LOGINAME/$REPONAME" ]
0 commit comments