Skip to content

Commit

Permalink
Merge pull request #836 from rstudio/pbl-fix-connect-builds
Browse files Browse the repository at this point in the history
Replaced broken sed command (on macs) with ed alternative.
  • Loading branch information
plascaray authored Sep 23, 2024
2 parents 2819226 + f39d02e commit 2066dab
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ update-rsw-versions:
sed {{ sed_vars }} "s/[0-9]\{4\}\.[0-9]\{1,2\}\.[0-9]\{1,2\}/`just _get-clean-version {{ RSW_VERSION }}`/g" \
workbench/README.md \
r-session-complete/README.md
sed -i '/variable WORKBENCH_VERSION/!b;n;c\ \ \ \ default = "{{ RSW_VERSION }}"' docker-bake.hcl
awk -v new_version="{{ RSW_VERSION }}" '
/variable WORKBENCH_VERSION/ { print; getline; print " default = \"" new_version "\""; next }
{ print }
' docker-bake.hcl > file.tmp && mv file.tmp docker-bake.hcl
# just RSPM_VERSION=1.2.3 update-rspm-versions
update-rspm-versions:
Expand All @@ -320,7 +323,10 @@ update-rspm-versions:
package-manager/Justfile \
Justfile
sed {{ sed_vars }} -E "s/[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}/`just _get-clean-version {{ RSPM_VERSION }}`/g" package-manager/README.md
sed -i '/variable PACKAGE_MANAGER_VERSION/!b;n;c\ \ \ \ default = "{{ RSPM_VERSION }}"' docker-bake.hcl
awk -v new_version="{{ RSPM_VERSION }}" '
/variable PACKAGE_MANAGER_VERSION/ { print; getline; print " default = \"" new_version "\""; next }
{ print }
' docker-bake.hcl > file.tmp && mv file.tmp docker-bake.hcl
# just RSC_VERSION=1.2.3 update-rsc-versions
update-rsc-versions:
Expand All @@ -335,7 +341,10 @@ update-rsc-versions:
sed {{ sed_vars }} -E "s/[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}/`just _get-clean-version {{ RSC_VERSION }}`/g" \
connect/README.md \
connect-content-init/README.md
sed -i '/variable CONNECT_VERSION/!b;n;c\ \ \ \ default = "{{ RSC_VERSION }}"' docker-bake.hcl
awk -v new_version="{{ RSC_VERSION }}" '
/variable CONNECT_VERSION/ { print; getline; print " default = \"" new_version "\""; next }
{ print }
' docker-bake.hcl > file.tmp && mv file.tmp docker-bake.hcl
# just R_VERSION=3.2.1 R_VERSION_ALT=4.1.0 update-r-versions
update-r-versions: update-default-r-versions
Expand Down

0 comments on commit 2066dab

Please sign in to comment.