Very nifty script. =)
(Just thinking aloud here) would be handy if the end user could install a given package/port using your idea. Something like:
<pseudo-code>
dialog --yesno --title "Install $PKG_NAME?" "$PKG_DESCR" $HEIGHT $WIDTH
[ $? -eq 0 ] && func_add_pkg $PKG_NAME || func_next_routine...
Hi fonz. Yep, that's exactly what my 1st attempt used (the builtin construct).
Slowly but surely finding my way around FreeBSD, I appreciate the help & patience you all've shown me =)
Gordon you nailed it, thanks. Just discovered $IFS on my end, was thinking of splitting $PATH with awk which led me right back to the 1st issue (awk is an external dependency itself).
Coming from a WinAPI world, alot to learn on my end still. Lots of folks helping me 'get there'. Its a great...
Well if the which command is not present, the script can not verify the existence of other dependencies, e.g. the external which (in this case) is itself a dependency. Chicken & egg...
Trying to find both a portable & posix method to test for the existence of a given file along the default system path using -only- builtins, if you have a more succinct method, I'd like to study your snippet. The following works, but somehow feels like I'm on the wrong track...
#!/bin/sh...
Simple script to load a random screensaver module. Best called from something like /etc/rc.local
#!/bin/sh
# only root may run the script
[ $(id -u) -ne 0 ] && exit 1
# id of current screensaver module
IDM=$(kldstat|grep -i saver|awk '{print $1}')
# list of screensaver modules excluding...
Hi Frederic.
Yes I agree with your changes, & thanks for the updated shar. I appreciate that you took the time to explain the ports Makefile rationale.
Final question (I hope)...
If I've already submitted the port for consideration via send-pr -a topic.shar, yet sill need to correct the MAINTAINER line in the port's Makefile. How does one rectify that situation? Simply wait until & if its approved or... I'm not sure honestly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.