aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-05-16 03:23:18 -0400
committerB. Watson <urchlay@slackware.uk>2026-05-16 03:23:18 -0400
commit3398c2d7bee55f60b3d6dd94e4847c4bbefb3add (patch)
treeb1355d417772a5d319ad76ce38437c8ea037ce37
parentb26c6ae879c387c930898c60266e2632d9f65278 (diff)
downloadsbostuff-3398c2d7bee55f60b3d6dd94e4847c4bbefb3add.tar.gz
New find template in mkslackinfo, verbose guessing in cdsb.
-rwxr-xr-xmkslackinfo5
-rw-r--r--sbostuff.sh4
2 files changed, 6 insertions, 3 deletions
diff --git a/mkslackinfo b/mkslackinfo
index 85967a9..70ec4cc 100755
--- a/mkslackinfo
+++ b/mkslackinfo
@@ -323,8 +323,9 @@ rm -rf $PRGNAM-$VERSION
__EXTRACT__
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod -h 755 {} + -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod -h 644 {} +
+find . ! -type l -a \
+ \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \
+ \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \)
__BUILD__
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
diff --git a/sbostuff.sh b/sbostuff.sh
index 2c15284..1bbe5ba 100644
--- a/sbostuff.sh
+++ b/sbostuff.sh
@@ -99,10 +99,12 @@ EOF
cd "$( _cdsbexp $SBO_GITROOT/*/$1)"
_set_pkg
else
- echo "cdsb: no exact match, guessing dir" 1>&2
+ echo "cdsb: no exact match, guessing dir, partial matches:" 1>&2
+ ( cd $SBO_GITROOT ; ls -dC */$1* | sed 's,^, ,' )
dir="$( _cdsbexp $SBO_GITROOT/*/$1* )"
[ -z "$dir" ] && dir="$( _cdsbexp $SBO_GITROOT/*/*$1* )"
if [ -n "$dir" ]; then
+ echo "cdsb: guessed $( echo $dir | rev | cut -d/ -f1,2 | rev )" 1>&2
cd "$dir"
ret="$?"
[ "$ret" = "0" ] && _set_pkg