Commit b0979eb3 authored by Berk Onat's avatar Berk Onat

Fixed backup files for reinstall.

parent 43fffdbd
......@@ -38,9 +38,9 @@ do
#firstline=`cat $file | head -n 1`
#sed -i.bak '1a\'$'\n'${firstline}$'\n' $file
sed -i.bak '1i\'$'\n''#endif'$'\n' $file
sed -i.bak '1i\'$'\n''char msgstr'${fcount}'[512], msgout'${fcount}'[512], msgerr'${fcount}'[512];'$'\n' $file
sed -i.bak '1i\'$'\n''#define SILENCE_'${fcount}'_PLUGIN 1'$'\n' $file
sed -i.bak '1i\'$'\n''#ifndef SILENCE_'${fcount}'_PLUGIN'$'\n' $file
sed -i "" '1i\'$'\n''char msgstr'${fcount}'[512], msgout'${fcount}'[512], msgerr'${fcount}'[512];'$'\n' $file
sed -i "" '1i\'$'\n''#define SILENCE_'${fcount}'_PLUGIN 1'$'\n' $file
sed -i "" '1i\'$'\n''#ifndef SILENCE_'${fcount}'_PLUGIN'$'\n' $file
#sed -i.bak $incline'a\'$'\n''#define SILENCE_PLUGINS_'${fcount}' 1'$'\n' $file
#sed -i.bak $incline'a\'$'\n''#ifndef SILENCE_PLUGINS_'${fcount}''$'\n' $file
singlelines1=`cat $file | grep -n -e "$pattern1" | grep -v "^--" | awk -F":" '{print $1}'`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment