Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@ doc/svndiffview.1
*~
*.swp

# gnulib-update.sh checkout
/gnulib-tmp/

# Tarballs
patchutils-*.tar.?z*
10 changes: 7 additions & 3 deletions gnulib-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
# Script to update gnulib modules
# Run this when you want to update to newer gnulib versions

set -e
cd "$(dirname "$0")"
GNULIB_DIR=gnulib-tmp
trap 'rm -rf "$GNULIB_DIR"' EXIT

echo "Updating gnulib modules..."
git clone --depth 1 https://github.com/coreutils/gnulib.git /tmp/gnulib-update
/tmp/gnulib-update/gnulib-tool --update
rm -rf /tmp/gnulib-update
git clone --depth 1 https://github.com/coreutils/gnulib.git "$GNULIB_DIR"
"$GNULIB_DIR/gnulib-tool" --update
echo "Gnulib updated. Please test and commit."
Loading