Permalink
Browse files

sometimes failed to create install.rdf

  • Loading branch information...
piroor committed Feb 24, 2012
1 parent c64539f commit f68249cf8dd66ce8ddfbd8b3fd650ef7cd1f130b
Showing with 10 additions and 8 deletions.
  1. +10 −8 makexpi.sh
View
@@ -148,18 +148,20 @@ mv install.rdf ./install.rdf.base
if [ "$min_version" != "0" ]
then
cat install.rdf.base \
- | (rm install\.rdf\.base; \
- sed -e "s#<em:minVersion>.*</em:minVersion>#<em:minVersion>${min_version}</em:minVersion>#g" \
- -e "s#em:minVersion=\(\".*\"\|'.*'\)#em:minVersion=\"${min_version}\"#g" \
- > install\.rdf\.base )
+ | sed -e "s#<em:minVersion>.*</em:minVersion>#<em:minVersion>${min_version}</em:minVersion>#g" \
+ -e "s#em:minVersion=\(\".*\"\|'.*'\)#em:minVersion=\"${min_version}\"#g" \
+ > install.rdf
+ rm install.rdf.base
+ mv install.rdf ./install.rdf.base
fi
if [ "$max_version" != "0" ]
then
cat install.rdf.base \
- | (rm install\.rdf\.base;\
- sed -e "s#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>${max_version}</em:maxVersion>#g" \
- -e "s#em:maxVersion=\(\".*\"\|'.*'\)#em:maxVersion=\"${max_version}\"#g" \
- > install\.rdf\.base )
+ | sed -e "s#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>${max_version}</em:maxVersion>#g" \
+ -e "s#em:maxVersion=\(\".*\"\|'.*'\)#em:maxVersion=\"${max_version}\"#g" \
+ > install.rdf
+ rm install.rdf.base
+ mv install.rdf ./install.rdf.base
fi
cd ..

0 comments on commit f68249c

Please sign in to comment.