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

A script to perform most of the libuv version update steps #390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
42 changes: 42 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,45 @@
- Fix any `R CMD check` warnings about pragmas
- Add Makefile.mingw for windows builds
- Delete tarballs and temporary directories

A Linux bash script to do all but the `R CMD check` fix and the last cleanup
step above in a clean, temporary is below:

```
# Update/build dist for libuv
LIBUV_VERSION=1.44.2
wget https://dist.libuv.org/dist/v${LIBUV_VERSION}/libuv-v${LIBUV_VERSION}.tar.gz
tar zxvf libuv-v${LIBUV_VERSION}.tar.gz
rm libuv-v${LIBUV_VERSION}.tar.gz
cd libuv-v${LIBUV_VERSION}
echo AM_MAINTAINER_MODE >> configure.ac
grep -v AC_ENABLE_SHARED configure.ac > configure.ac.tmp
mv configure.ac.tmp configure.ac
./autogen.sh
./configure
make dist

# Update fs
cd ..
git clone [email protected]:r-lib/fs.git
cd fs/src
git checkout -b libuv-v${LIBUV_VERSION}
# save Makefile.mingw for later
mv libuv-*/Makefile.mingw .
git rm -r libuv-*
tar zxvf ../../libuv-v${LIBUV_VERSION}/libuv-${LIBUV_VERSION}.tar.gz
cd libuv-${LIBUV_VERSION}
rm -r m4 img docs test aclocal.m4
cd ..

# restore Makefile.mingw
mv Makefile.mingw libuv-${LIBUV_VERSION}

# Update Makevars
sed "s/LIBUV := libuv-.*/LIBUV := libuv-${LIBUV_VERSION}/" Makevars -i.bak
sed "s/LIBUV := libuv-.*/LIBUV := libuv-${LIBUV_VERSION}/" Makevars.win -i.bak
rm Makevars.bak Makevars.win.bak

git add libuv-${LIBUV_VERSION} Makevars Makevars.win
git commit -m "Update to libuv-${LIBUV_VERSION}"
```