View Single Post
Old 15th December 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Using OpenBSD make:
Code:
$ cat Makefile                                                    

FILES = latest-pkg latest-pkg-calyx latest-pkg-erlangen \
        latest-pkg-esat latest-pkg-plig latest-pkg-stacken

main:
.for THIS in ${FILES}
        @echo mv ${THIS} ${THIS:S/-pkg/_pkg/g}  
.endfor

$ make

mv latest-pkg latest_pkg
mv latest-pkg-calyx latest_pkg-calyx
mv latest-pkg-erlangen latest_pkg-erlangen
mv latest-pkg-esat latest_pkg-esat
mv latest-pkg-plig latest_pkg-plig
mv latest-pkg-stacken latest_pkg-stacken
The :S variable modifier is described in make(1).
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote