This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Preserve escape characters on makeDeb.sh

  • Loading branch information...
SokoloffA committed Jan 30, 2013
1 parent 2bd5c25 commit 4d089da5ac3e690ccdc80f3d1dac495cdff88a43
Showing with 3 additions and 4 deletions.
  1. +3 −4 distr/deb/makeDeb.sh
View
@@ -11,7 +11,7 @@ Options
-o|--outdirt=DIR write result to DIR, home directory by default
-r|--release=RELEASE release name (sid, squeeze, testing, maveric, natty etc.), autodetect if ommited
-d|--distrib=DISTRIB distib type (Debian or Ubuntu), autodetect if ommited
- --ver=VERSION razor version
+ --ver=VERSION package version
-S|--sign sign a result files
-s|--source build a source package, if ommited build a binary package
--debug debug mode not build package only create debian directory
@@ -88,7 +88,7 @@ token=''
line=''
function nextToken
{
- while IFS='' read "line"; do
+ while IFS='' read -r "line"; do
token=`echo $line | awk '{print $1 }' | tr '[:lower:]' '[:upper:]'`
case $token in
%IF|%IFNOT|%ELSIF|%ELSEIF|%ELSE|%ENDIF|%SET)
@@ -116,7 +116,7 @@ function nextToken
function skipBlock
{
local level=0
- while IFS='' read "line"; do
+ while IFS='' read -r "line"; do
token=`echo $line | awk '{print $1 }' | tr '[:lower:]' '[:upper:]'`
case $token in
%IF|%IFNOT)
@@ -142,7 +142,6 @@ function skipBlock
function processBlock
{
nextToken
-
while [ "$token" != "" ]; do
case $token in
%IF|%IFNOT)

0 comments on commit 4d089da

Please sign in to comment.