# $Id$ INTROOT=//depot/ops/corp/grhat/tree all: $(shell ls src/ks.*.src | sed -e 's/.src$$/.cfg/' -e "s/src\///") # This wouldn't be needed if kickstart includes actually worked in RH 9 # (they're not documented properly, and have fatal bugs reported in RH's # bugzilla) -- Marc ks.%.cfg: src/ks.%.src snippets/* @echo "(re)Building $@" @-p4 edit $@ $@_handpart $@_http $@_http_handpart &>/dev/null @./kscompile src/`echo $@ | sed 's/.cfg\$$/.src/'` > $@ # removing the partition info forces KS to drop into partitioning mode @sed -e "s/^\(zerombr\)/# \1/" -e "s/^\(clearpart\)/# \1/" -e "s/^\(part\)/# \1/" -e "s/^\(raid\)/# \1/" -e "s/^\(volgroup\)/# \1/" -e "s/^\(logvol\)/# \1/" < $@ > $@_handpart @sed -e "s/^nfs.*/url --url http:\/\/apt\/rhbase\/9\//" < $@ > $@_http @sed -e "s/^\(zerombr\)/# \1/" -e "s/^\(clearpart\)/# \1/" -e "s/^\(part\)/# \1/" -e "s/^\(raid\)/# \1/" -e "s/^\(volgroup\)/# \1/" -e "s/^\(logvol\)/# \1/" < $@_http > $@_http_handpart @echo "you should review and p4 submit $@"