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
6 changes: 3 additions & 3 deletions git-extra/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pkgbase="mingw-w64-${_realname}"
pkgname=($_realname
"${MINGW_PACKAGE_PREFIX}-${_realname}")
_ver_base=1.1
pkgver=1.1.649.af5925057
pkgver=1.1.653.48e2403b3
pkgrel=1
pkgdesc="Git for Windows extra files"
arch=('any')
Expand All @@ -19,8 +19,8 @@ install='git-extra.install'
pkgver() {
cd "$startdir"
test ! -f "$(git rev-parse --git-path shallow)" || git -c http.sslbackend fetch --unshallow
rev="$(git rev-list -1 HEAD -- .)"
test -n "$(git show . |
rev="$(git rev-list -1 HEAD -- . ':(exclude)./git-extra.install')"
test -n "$(git show . ':(exclude)./git-extra.install' |
sed -n -e '1,/^@@/d' -e '/^[-+]pkgver=/d' -e '/^[-+]pkgver=/d' -e "/^[-+] *'[0-9a-f]\{64\}'$/d" -e '/^[-+]/p')" ||
rev="$(git rev-list -1 $rev^ -- .)"
printf "%s.%s.%s" "${_ver_base}" "$(git rev-list --count $rev -- .)" \
Expand Down
12 changes: 7 additions & 5 deletions git-extra/git-extra.install
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ GITATTRIBUTES
grep -q "$otherpacman" etc/pacman.conf ||
sed -i -e '/^\[mingw32\]/i['$otherpacman']\nServer = https://wingit.blob.core.windows.net/'$otherarch'\n' etc/pacman.conf

test -z "$(find /clangarm64 -type f -print -quit)" || # if /clangarm64 exists and contains at least one file
test -z "$(find /clangarm64 -type f -print -quit 2>/dev/null)" || # if /clangarm64 exists and contains at least one file
grep -q "git-for-windows-aarch64" etc/pacman.conf || # then add Git for Windows' aarch64 repository (unless it's already added)
sed -i -e '/^\[clangarm64]/i[git-for-windows-aarch64]\nServer = https://wingit.blob.core.windows.net/aarch64\n' etc/pacman.conf

Expand Down Expand Up @@ -247,10 +247,12 @@ test -d "$TMPDIR" || test ! -d "$TMP" || {\
}

# Enable color and syntax-highlighting in GNU nano
test ! -f /etc/nanorc ||
grep -q '^set titlecolor' /etc/nanorc ||
sed -i -e '/Paint the interface elements/,/root.s .nanorc/s/^# //' \
-e 's/^# \(include .*nanorc"\)$/\1/' /etc/nanorc
test ! -f /etc/nanorc || {
grep -q '^set titlecolor' /etc/nanorc ||
sed -i '/Paint the interface elements/,/root.s .nanorc/s/^# //' /etc/nanorc
grep -q '^include .*\*\.nanorc' /etc/nanorc ||
sed -i 's/^# \(include .*\*\.nanorc"\?\)$/\1/' /etc/nanorc
}

# Do not require /usr/bin/cmd in /usr/bin/start
grep -q '^"\$COMSPEC" ' /usr/bin/start ||
Expand Down
12 changes: 7 additions & 5 deletions git-extra/git-extra.install.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ GITATTRIBUTES
grep -q "$otherpacman" etc/pacman.conf ||
sed -i -e '/^\[mingw32\]/i['$otherpacman']\nServer = https://wingit.blob.core.windows.net/'$otherarch'\n' etc/pacman.conf

test -z "$(find /clangarm64 -type f -print -quit)" || # if /clangarm64 exists and contains at least one file
test -z "$(find /clangarm64 -type f -print -quit 2>/dev/null)" || # if /clangarm64 exists and contains at least one file
grep -q "git-for-windows-aarch64" etc/pacman.conf || # then add Git for Windows' aarch64 repository (unless it's already added)
sed -i -e '/^\[clangarm64]/i[git-for-windows-aarch64]\nServer = https://wingit.blob.core.windows.net/aarch64\n' etc/pacman.conf

Expand Down Expand Up @@ -213,10 +213,12 @@ test -d "$TMPDIR" || test ! -d "$TMP" || {\
}

# Enable color and syntax-highlighting in GNU nano
test ! -f /etc/nanorc ||
grep -q '^set titlecolor' /etc/nanorc ||
sed -i -e '/Paint the interface elements/,/root.s .nanorc/s/^# //' \
-e 's/^# \(include .*nanorc"\)$/\1/' /etc/nanorc
test ! -f /etc/nanorc || {
grep -q '^set titlecolor' /etc/nanorc ||
sed -i '/Paint the interface elements/,/root.s .nanorc/s/^# //' /etc/nanorc
grep -q '^include .*\*\.nanorc' /etc/nanorc ||
sed -i 's/^# \(include .*\*\.nanorc"\?\)$/\1/' /etc/nanorc
}

# Do not require /usr/bin/cmd in /usr/bin/start
grep -q '^"\$COMSPEC" ' /usr/bin/start ||
Expand Down