Mr.Combet Webshell
Your IP :
3.129.58.60
Server IP :
185.136.159.155
Server :
Linux 185-136-159-155.cprapid.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software :
Apache
PHP Version :
8.1.29
Add File :
Submit
Add Directory :
Submit
Dir :
~
/
proc
/
self
/
root
/
lib
/
rpm
/
redhat
/
Edit File Name :
brp-python-hardlink
#!/bin/sh # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi # Hardlink identical *.pyc and *.pyo, originally from PLD's rpm-build-macros # Modified to use sha1sum instead of cmp to avoid a diffutils dependency. find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')" if [ -f "$pyo" ] ; then csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \ osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \ if [ "$csha" = "$osha" ] ; then ln -f "$pyc" "$pyo" fi fi done
Save