Skip to content

Commit

Permalink
Handle backslashes properly in path substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanssens committed May 7, 2014
1 parent de3614c commit d5b73c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist-impl.sh
Expand Up @@ -254,6 +254,7 @@ function dist_gnucash() {
GNUCASH_MAJOR_VERSION=$(awk '/ GNUCASH_MAJOR_VERSION / { print $3 }' ${GNUCASH_CONFIG_H} )
GNUCASH_MINOR_VERSION=$(awk '/ GNUCASH_MINOR_VERSION / { print $3 }' ${GNUCASH_CONFIG_H} )
GNUCASH_MICRO_VERSION=$(awk '/ GNUCASH_MICRO_VERSION / { print $3 }' ${GNUCASH_CONFIG_H} )
DIST_WFSDIR=$(echo $DIST_DIR | sed -e 's#\\#\\\\#g')
sed < $_GC_WIN_REPOS_UDIR/gnucash.iss \
> $_GNUCASH_UDIR/gnucash.iss \
-e "s#@-qtbindir-@#${_QTDIR_WIN}/bin#g" \
Expand All @@ -264,7 +265,7 @@ function dist_gnucash() {
-e "s#@GNUCASH_MAJOR_VERSION@#${GNUCASH_MAJOR_VERSION}#g" \
-e "s#@GNUCASH_MINOR_VERSION@#${GNUCASH_MINOR_VERSION}#g" \
-e "s#@GNUCASH_MICRO_VERSION@#${GNUCASH_MICRO_VERSION}#g" \
-e "s#@DIST_DIR@#${DIST_DIR}#g"
-e "s#@DIST_DIR@#${DIST_WFSDIR}#g"
}

function dist_finish() {
Expand Down

0 comments on commit d5b73c5

Please sign in to comment.