Skip to content

Commit 9cf0d10

Browse files
committed
Add autoconf, automake, libtool & perl shims
Refs #304
1 parent 1e0d179 commit 9cf0d10

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

libexec/autoconf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/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="${PKGX_DIR:-$HOME/.pkgx}/pkgx.sh/v*/bin/pkgx"
9+
fi
10+
11+
exec "$pkgx" +gnu.org/autoconf -- autoconf "$@"

libexec/automake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/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="${PKGX_DIR:-$HOME/.pkgx}/pkgx.sh/v*/bin/pkgx"
9+
fi
10+
11+
exec "$pkgx" +gnu.org/automake -- automake "$@"

libexec/libtool

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
# linking on darwin is best left to Apple’s choices
4+
if [ $(uname) = "Darwin" ]; then
5+
exec /usr/bin/libtool "$@"
6+
fi
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="${PKGX_DIR:-$HOME/.pkgx}/pkgx.sh/v*/bin/pkgx"
14+
fi
15+
16+
exec "$pkgx" +gnu.org/libtool -- libtool "$@"

libexec/perl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/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="${PKGX_DIR:-$HOME/.pkgx}/pkgx.sh/v*/bin/pkgx"
9+
fi
10+
11+
exec "$pkgx" +perl.org -- perl "$@"

0 commit comments

Comments
 (0)