This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: portsdiff <diff-name> | |
# Creates a new diff from the current port cvs directory in DIR. | |
# If no parameter is passed PKGNAME will use as filename. | |
portsdiff () { | |
local DIR="$HOME/patches" | |
local SAVEFILE | |
if [ ! -d "$DIR" ]; then | |
echo "create $DIR" | |
mkdir -p $DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ports_find_missing_libs() { | |
make port-lib-depends-check | \ | |
while read LINE | |
do | |
if [[ $LINE == "Missing lib: "* ]]; then | |
LIB_NAME=$(echo $LINE | awk '{print $3}') | |
LIB_NAME=${LIB_NAME%.*} | |
rg ${LIB_NAME} ~/wip-ports | rg SHARED_LIBS | \ | |
while read SHARED_LIB | |
do |