HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / lib / rpm /

Server Ip : 104.21.78.54




Filename/lib/rpm/libtooldeps.sh
Size718
Permissionrwxr-xr-x
Owner
Create time08-Dec-2022 22:35
Last modified24-Nov-2021 09:47
Last accessed24-Nov-2021 09:47
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

[ $# -ge 2 ] || {
cat > /dev/null
exit 0
}

case $1 in
-P|--provides)
shift
RPM_BUILD_ROOT="$1"
while read possible
do
case "$possible" in
*.la)
if grep -Eiq '^# Generated by (libtool|ltmain.sh)' "$possible" 2> /dev/null ; then
possible="`echo ${possible} | sed -e s,${RPM_BUILD_ROOT}/,/,`"
echo "libtool($possible)"
fi
;;
esac
done
;;
-R|--requires)
while read possible ; do
case "$possible" in
*.la)
for dep in `grep '^dependency_libs='"$possible" 2> /dev/null | \
sed -e "s,^dependency_libs='\(.*\)',\1,g"`
do
case "$dep" in
/*.la)
echo "libtool($dep)"
;;
esac
done
;;
esac
done
;;
esac
exit 0