source: debwrt/trunk/openwrt/patches/generate @ 218

Last change on this file since 218 was 218, checked in by stappers, 8 years ago

Added "generate stuff" to openwrt patches

File size: 500 bytes
Line 
1#
2# generate
3#
4# execucte this script with bash.
5# Example given
6#   bash openwrt/patches/generate
7#
8
9TD=$(dirname $0)  # This Directory
10
11function file2diff
12{
13  F=${1} # the input File
14  P=${2} # (optional) Prefix
15  L=$( cat ${TD}/${F} | wc -l )
16  echo "--- /dev/null"
17  echo "+++ ${P}${F}     generated"
18  echo "@@ -0,0 +1,${L} @@"
19  sed -e 's/^/+/' ${TD}/$F
20}
21
22P=001_disable_all_openwrt_packages
23cat ${TD}/${P}.in > ${TD}/${P}
24file2diff debwrt_disables_packages.sed ./scripts/ >> ${TD}/${P}
25
26# l l
Note: See TracBrowser for help on using the repository browser.