Skip to content

Commit ceeb2ae

Browse files
bobertlothe-maldridge
authored andcommitted
configure: add [-R repo] flag
1 parent 188c162 commit ceeb2ae

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

configure

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ VERSION=0.0.0
33

44
CFG_CMDLINE=
55
CFG_CROSS=
6+
CFG_REPO=
67
CROSS_ARCH=
78
DISTDIR=
89
MASTERDIR=
@@ -14,14 +15,14 @@ RCV=`command -v xbps-checkvers 2>/dev/null`
1415
RCV_F="repo-checkvers.txt"
1516
TOBUILD=
1617
_TOBUILD=
17-
USAGE="Usage: $0 [-a cross-arch] [-CN] [-d|-m|-h dir]"
18+
USAGE="Usage: $0 [-a cross-arch] [-CN] [-R repo] [-d|-m|-h dir]"
1819

1920
[ -f $RCV ] || {
2021
printf "ERROR: The 'xbps-checkvers' was not found in the PATH.\n"
2122
exit 1
2223
}
2324

24-
while getopts a:Cc:d:Nm:th:v OPT; do
25+
while getopts a:Cc:d:Nm:th:vR: OPT; do
2526
case "$OPT" in
2627
a)
2728
CFG_CROSS="-a $OPTARG"
@@ -73,6 +74,9 @@ while getopts a:Cc:d:Nm:th:v OPT; do
7374
}
7475
HOSTDIR="$OPTARG"
7576
;;
77+
R)
78+
CFG_REPO="-R $OPTARG"
79+
;;
7680
\?)
7781
printf "%s\n" "$USAGE"
7882
exit 1
@@ -95,7 +99,7 @@ if [ -n "$CFG_CROSS" ]; then
9599
export XBPS_TARGET_ARCH=$CROSS_ARCH
96100
fi
97101

98-
RCV_CMD_LINE="$RCV --distdir=${DISTDIR} ${*}"
102+
RCV_CMD_LINE="$RCV $CFG_REPO --distdir=${DISTDIR} ${*}"
99103
printf "INFO: Getting list of updates, please wait...\n"
100104
printf "INFO: Running '$RCV_CMD_LINE' (${CROSS_ARCH:-native}) ...\n"
101105

0 commit comments

Comments
 (0)