aboutsummaryrefslogtreecommitdiff
path: root/upkg
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-18 17:30:24 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-18 17:30:24 -0400
commit06765665a18308d71ac9bcb4f328463cc7a24dc0 (patch)
treede2a2fbba4e212cc9c16eacc230c703ae53c5daa /upkg
parenteae115961815be0f444f48a740582fbb60859ec3 (diff)
downloadsbostuff-06765665a18308d71ac9bcb4f328463cc7a24dc0.tar.gz
upkg: handle i686 i586 i486 packages
Diffstat (limited to 'upkg')
-rwxr-xr-xupkg7
1 files changed, 6 insertions, 1 deletions
diff --git a/upkg b/upkg
index c4f86a9..937435a 100755
--- a/upkg
+++ b/upkg
@@ -34,6 +34,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+case "$ARCH" in
+ i?86) ARCH="i686 i586 i486 i386" ;;
+ *) ;;
+esac
+
# if no package name, see if we're in a SlackBuild dir.
# if so, install the package for the current dir, if one
# exists in $OUTPUT. Read .info file for version number and
@@ -60,7 +65,7 @@ if [ -z "$@" ]; then
eval $buildline
- for myarch in noarch "$ARCH"; do
+ for myarch in noarch $ARCH; do
myglob="$OUTPUT/$PRGNAM-$VERSION-$myarch-$BUILD*.t?z"
myfile=$( echo $myglob )