Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced broken sed command (on macs) with ed alternative. #836

Merged
merged 3 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading