teelime
teeli****@users*****
2006年 3月 9日 (木) 03:54:03 JST
Index: dlkit2/sv.mk-grubmenu-newbootpostupdate1.sh diff -u dlkit2/sv.mk-grubmenu-newbootpostupdate1.sh:1.4 dlkit2/sv.mk-grubmenu-newbootpostupdate1.sh:removed --- dlkit2/sv.mk-grubmenu-newbootpostupdate1.sh:1.4 Mon Feb 27 23:14:31 2006 +++ dlkit2/sv.mk-grubmenu-newbootpostupdate1.sh Thu Mar 9 03:54:03 2006 @@ -1,27 +0,0 @@ -#!/bin/sh -# sv.mk-grubmenu-newbootpostupdate1.sh - utility to generate GRUB's menu.lst file -# when after diskless-installing. - -# Copyright (c) 2006 teelime <teeli****@users*****> -# Copyright (c) 2006 SAWADA Keiji <card_capto****@users*****> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License AND Common -# Development and Distribution License. - -asserta='== << Assertion >> ==================================================' - -apply_m4() { - # apply_m4 -Dmacro=value input.m4 > output - CONFIG=./config.in - (echo ". $CONFIG" - echo "m4 \\" - sed -n 's/^\([^#=]*\)=.*$/\1/p' < $CONFIG | sort -u | sed 's/\(.*\)/-D\1="$\1" \\/' - echo "$@" - ) | sh -} - -. ./config.in - -echo "menu.lst" -apply_m4 -DPOSTUPDATE1 sv.grub-menu.m4 > $SV_PXEBOOTDIR/grub/menu.lst