#!/bin/sh # # arch/mn10300/boot/install -c.sh # # This file is subject to the terms and conditions of the GNU General Public # Licence. See the file "COPYING" in the main directory of this archive # for more details. # # Copyright (C) 1995 by Linus Torvalds # # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin # # "make install -c" script for i386 architecture # # Arguments: # $1 - kernel version # $2 - kernel image file # $3 - kernel map file # $4 - default install -c path (blank if root directory) # $5 - boot rom file # # User may have a custom install -c script rm -fr $4/../usr/include/linux $4/../usr/include/asm install -c -m 0755 $2 $4/vmlinuz install -c -m 0755 $5 $4/boot.rom install -c -m 0755 -d $4/../usr/include/linux cd $(srctree)/include/linux for i in [$[find . -maxdepth 1 -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux } install -c -m 0755 -d $4/../usr/include/linux/byteorder cd $(srctree)/include/linux/byteorder for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/byteorder } install -c -m 0755 -d $4/../usr/include/linux/lockd cd $(srctree)/include/linux/lockd for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/lockd } install -c -m 0755 -d $4/../usr/include/linux/netfilter_ipv4 cd $(srctree)/include/linux/netfilter_ipv4 for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/netfilter_ipv4 } install -c -m 0755 -d $4/../usr/include/linux/nfsd cd $(srctree)/include/linux/nfsd for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/nfsd/$i } install -c -m 0755 -d $4/../usr/include/linux/raid cd $(srctree)/include/linux/raid for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/raid } install -c -m 0755 -d $4/../usr/include/linux/sunrpc cd $(srctree)/include/linux/sunrpc for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/linux/sunrpc } install -c -m 0755 -d $4/../usr/include/asm cd $(srctree)/include/asm for i in [$[find . -name '*.h' -print]] { install -c -m 0644 $i $4/../usr/include/asm } (CommandList children: [ (C {(rm)} {(-fr)} {($ VSub_Number "$4") (/../usr/include/linux)} {($ VSub_Number "$4") (/../usr/include/asm)} ) (C {(install)} {(-c)} {(-m)} {(0755)} {($ VSub_Number "$2")} {($ VSub_Number "$4") (/vmlinuz)}) (C {(install)} {(-c)} {(-m)} {(0755)} {($ VSub_Number "$5")} {($ VSub_Number "$4") (/boot.rom)}) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-maxdepth)} {(1)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [130 146] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux)} ) ] spids: [149 165] ) spids: [129 147] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/byteorder)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/byteorder)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [193 205] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/byteorder)} ) ] spids: [208 224] ) spids: [192 206] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/lockd)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/lockd)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [252 264] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/lockd)} ) ] spids: [267 283] ) spids: [251 265] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/netfilter_ipv4)} ) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/netfilter_ipv4)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [311 323] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/netfilter_ipv4)} ) ] spids: [326 342] ) spids: [310 324] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/nfsd)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/nfsd)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [370 382] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/nfsd/) ($ VSub_Name "$i")} ) ] spids: [385 402] ) spids: [369 383] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/raid)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/raid)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [430 442] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/raid)} ) ] spids: [445 461] ) spids: [429 443] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/linux/sunrpc)}) (C {(cd)} {(${ VSub_Name srctree) (/include/linux/sunrpc)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [489 501] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/linux/sunrpc)} ) ] spids: [504 520] ) spids: [488 502] ) (C {(install)} {(-c)} {(-m)} {(0755)} {(-d)} {($ VSub_Number "$4") (/../usr/include/asm)}) (C {(cd)} {(${ VSub_Name srctree) (/include/asm)}) (ForEach iter_name: i iter_words: [ { (CommandSubPart command_list: (CommandList children: [(C {(find)} {(.)} {(-name)} {(SQ <"*.h">)} {(-print)})] ) left_token: spids: [548 560] ) } ] do_arg_iter: False body: (DoGroup children: [ (C {(install)} {(-c)} {(-m)} {(0644)} {($ VSub_Name "$i")} {($ VSub_Number "$4") (/../usr/include/asm)} ) ] spids: [563 579] ) spids: [547 561] ) ] )