| Revision: | 1.1 |
| Committed: | Sat Dec 7 21:49:49 2002 UTC (23 years, 9 months ago) by root |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Log Message: | *** empty log message *** |
| # | Content |
|---|---|
| 1 | #!/bin/bash |
| 2 | |
| 3 | # this thingy just creates relative links for all facilities in boot.fac |
| 4 | # and standard.fac |
| 5 | |
| 6 | cd "$1"; shift |
| 7 | |
| 8 | def() { |
| 9 | ln -vsf ../$FAC fac/"$1".fac |
| 10 | } |
| 11 | |
| 12 | defalias() { |
| 13 | ln -vsf ../$FAC fac/"$1".fac |
| 14 | } |
| 15 | |
| 16 | lnk() { |
| 17 | FAC=$1 |
| 18 | grep "^def\|defalias " "$1" | while read line; do eval $line; done |
| 19 | } |
| 20 | |
| 21 | for fac in "$@"; do |
| 22 | lnk $fac |
| 23 | done |
| 24 |