hmtl docs: use bash substitution instead of sed to remove extension from John Stoneham

git-svn-id: trunk@17013 -
This commit is contained in:
vincents 2008-10-15 21:49:11 +00:00
parent 151fa9b63d
commit 5d17b30514
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,8 @@ cd -
# create description file list
DescrFiles=''
for unit in $UnitList; do
ShortFile=`echo $unit | sed -e 's/\.pp\b//g' -e 's/\.pas\b//g'`
ShortFile=${unit%.pp}
ShortFile=${ShortFile%.pas}
DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
done

View File

@ -30,7 +30,8 @@ cd -
# create description file list
DescrFiles=''
for unit in $UnitList; do
ShortFile=`echo $unit | sed -e 's/\.pp\b//g' -e 's/\.pas\b//g'`
ShortFile=${unit%.pp}
ShortFile=${ShortFile%.pas}
DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
done