File tree Expand file tree Collapse file tree 13 files changed +26
-107
lines changed
Expand file tree Collapse file tree 13 files changed +26
-107
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # shared pkgx resolution for libexec wrappers
3+
4+ if [ -n " $PKGX " ] && [ -x " $PKGX " ]; then
5+ pkgx=" $PKGX "
6+ elif [ -x /usr/local/bin/pkgx ]; then
7+ pkgx=/usr/local/bin/pkgx
8+ elif [ -x " ${PKGX_DIR:- $HOME / .pkgx} /bin/pkgx" ]; then
9+ pkgx=" ${PKGX_DIR:- $HOME / .pkgx} /bin/pkgx"
10+ elif command -v pkgx > /dev/null 2>&1 ; then
11+ pkgx=" $( command -v pkgx) "
12+ else
13+ pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* 2> /dev/null | tail -1) /bin/pkgx"
14+ fi
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +gnu.org/autoconf -- autoconf " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +gnu.org/automake -- automake " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +curl.se -- curl " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +git-scm.org -- git " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +gnu.org/coreutils -- install " $@ "
Original file line number Diff line number Diff line change 44if [ $( uname) = " Darwin" ]; then
55 exec /usr/bin/libtool " $@ "
66fi
7-
8- if [ -x /usr/local/bin/pkgx ]; then
9- # removed from PATH deliberately
10- pkgx=/usr/local/bin/pkgx
11- else
12- # probs this is running in pkgx CI/CD
13- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
14- fi
15-
7+ . " $( dirname " $0 " ) /.find-pkgx"
168exec " $pkgx " +gnu.org/libtool -- libtool " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
32if [ $( uname) = Darwin ]; then
43 exec /usr/bin/make " $@ "
5- elif [ -x /usr/local/bin/pkgx ]; then
6- # removed from PATH deliberately
7- pkgx=/usr/local/bin/pkgx
8- else
9- # probs this is running in pkgx CI/CD
10- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
114fi
12-
5+ . " $( dirname " $0 " ) /.find-pkgx "
136exec " $pkgx " +gnu.org/make -- make " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +gnu.org/patch -- patch " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
2-
3- if [ -x /usr/local/bin/pkgx ]; then
4- # removed from PATH deliberately
5- pkgx=/usr/local/bin/pkgx
6- else
7- # probs this is running in pkgx CI/CD
8- pkgx=" $( ls -d ${PKGX_DIR:- $HOME / .pkgx} /pkgx.sh/v* | tail -1) /bin/pkgx"
9- fi
10-
2+ . " $( dirname " $0 " ) /.find-pkgx"
113exec " $pkgx " +perl.org -- perl " $@ "
You can’t perform that action at this time.
0 commit comments