source: ipk/source.sh4/tools_kravencfg/_path_/usr/local/share/titan/plugins/kravencfg/kravencfg.sh @ 35774

Last change on this file since 35774 was 35774, checked in by tobayer, 9 years ago

[plugin] add kravencfg, 2nd step

File size: 296 bytes
Line 
1#!/bin/sh
2
3lead="#begin_$1"
4tail="#end_$1"
5file_orig="$3/skin.xml"
6file_insert="$3/snippets/$1-$2.xml"
7
8echo lead=$lead
9echo tail=$tail
10echo file_orig=$file_orig
11echo file_insert=$file_insert
12
13sed -i -e "/^$lead$/,/^$tail$/{ /^$lead$/{p; r $file_insert
14        }; /$tail/p; d }" $file_orig
15
16sync
Note: See TracBrowser for help on using the repository browser.