Skip to content

Commit

Permalink
Replace variables multiple times per line [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Oct 13, 2021
1 parent 99a73e9 commit a9c3f46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/gen-src-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ then
| sort -u \
| tr \\n \\0 \
| xargs -0 sed -i \
-e "s|\${PROJECT_VERSION}|$project_version|" \
-e "s|\${PROJECT_VERSION_URL}|$project_version_url|" \
-e "s|\${PROJECT_VERSION_DATE}|$project_version_date|" \
-e "s|\${PROJECT_BUILD_DATE}|$project_build_date|" \
-e "s|\${PROJECT_SOURCE_URL}|$project_source_url|"
-e "s|\${PROJECT_VERSION}|$project_version|g" \
-e "s|\${PROJECT_VERSION_URL}|$project_version_url|g" \
-e "s|\${PROJECT_VERSION_DATE}|$project_version_date|g" \
-e "s|\${PROJECT_BUILD_DATE}|$project_build_date|g" \
-e "s|\${PROJECT_SOURCE_URL}|$project_source_url|g"
fi

0 comments on commit a9c3f46

Please sign in to comment.