Skip to content

Commit 5430d4b

Browse files
committed
Merge pull request #16 from nalla/optional-components
portable-release: optional components support
2 parents fbc50ee + bdc409a commit 5430d4b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

portable/release.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Build the portable Git for Windows.
44

55
test -z "$1" && {
6-
echo "Usage: $0 <version>"
6+
echo "Usage: $0 <version> [optional components]"
77
exit 1
88
}
99

@@ -24,8 +24,9 @@ x86_64)
2424
die "Unhandled architecture: $ARCH"
2525
;;
2626
esac
27-
28-
TARGET="$HOME"/PortableGit-"$1".7z.exe
27+
VERSION=$1
28+
shift
29+
TARGET="$HOME"/PortableGit-"$VERSION".7z.exe
2930
OPTS7="-m0=lzma -mx=9 -md=64M"
3031
TMPPACK=/tmp.7z
3132
SHARE="$(cd "$(dirname "$0")" && pwd)"
@@ -70,7 +71,7 @@ pacman_list () {
7071

7172
LIST="$(pacman_list mingw-w64-$ARCH-git git-extra ncurses mintty vim \
7273
sed awk less grep gnupg findutils coreutils \
73-
dos2unix which |
74+
dos2unix which $@|
7475
grep -v -e '\.[acho]$' -e '/aclocal/' \
7576
-e '/man/' \
7677
-e '^/usr/include/' -e '^/mingw32/include/' \

0 commit comments

Comments
 (0)