1#!/bin/sh 2 3sed -e '1istatic void bgp_debug_clear_updgrp_update_dbg(struct bgp *bgp);' -i \ 4 bgpd/bgp_debug.c 5sed -e 's%^#if 0%#if 1 /* 0 */%' -i \ 6 ospfd/ospf_vty.c \ 7 ospf6d/ospf6_top.c \ 8 # 9spatch \ 10 --sp-file tools/vty_index.cocci \ 11 --macro-file tools/cocci.h \ 12 --all-includes -I . -I lib \ 13 --use-gitgrep --dir . --in-place 14 15sed -e 's%^#if 1 /\* 0 \*/%#if 0%' -i \ 16 ospfd/ospf_vty.c \ 17 ospf6d/ospf6_top.c \ 18 # 19sed -e '1d' -i \ 20 bgpd/bgp_debug.c 21 22