Commit 2dc0892 1 parent fc47c33 commit 2dc0892 Copy full SHA for 2dc0892
File tree 3 files changed +28
-3
lines changed
3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ source=('inputrc'
30
30
' bash_profile.sh'
31
31
' msys2-32.ico'
32
32
' 99-post-install-cleanup.post'
33
- ' astextplain' )
33
+ ' astextplain'
34
+ ' git-sdk.sh' )
34
35
md5sums=(' 3fab57079f0322efe256e95fe29d516f'
35
36
' e7ad03fffc29e619e402dbd5ec9ef74c'
36
37
' bfb591886b2a28af3334521e71198b74'
@@ -47,7 +48,8 @@ md5sums=('3fab57079f0322efe256e95fe29d516f'
47
48
' fc645b2d3dd6a7187db75a5ed9b88bae'
48
49
' a8feb7ee2fa91bb179478f099444746f'
49
50
' bdeb6046510aa1a6cd76e7f86673aa3f'
50
- ' 6a1087428cd23aa7f6063d1a592cac38' )
51
+ ' 6a1087428cd23aa7f6063d1a592cac38'
52
+ ' 593dbce30c442529b4351650f4422b6e' )
51
53
52
54
prepare () {
53
55
test $startdir /$pkgname .install -nt $startdir /$pkgname .install.in &&
@@ -87,6 +89,7 @@ package() {
87
89
install -m755 aliases.sh $pkgdir /etc/profile.d
88
90
install -m755 env.sh $pkgdir /etc/profile.d
89
91
install -m755 bash_profile.sh $pkgdir /etc/profile.d
92
+ install -m755 git-sdk.sh $pkgdir /etc/profile.d
90
93
install -m644 msys2-32.ico $pkgdir /usr/share/git
91
94
install -m644 99-post-install-cleanup.post $pkgdir /etc/post-install
92
95
install -m755 astextplain $pkgdir /usr/bin
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # This profile.d script configures a few things for the Git SDK (but is
4
+ # excluded from the end user-facing Git for Windows).
5
+
6
+ # If both 32-bit and 64-bit Git for Windows SDK is installed next to each other,
7
+ # using the default directory names, mount them as /sdk32 and /sdk64,
8
+ # respectively, to make it easier to interact between the two.
9
+
10
+ rootdir=" $( cygpath -w /) " &&
11
+ case " $rootdir " in
12
+ * \\ git-sdk-32|* \\ git-sdk-64)
13
+ otherarch=$(( 96 - ${rootdir##* -} )) &&
14
+ if test ! -d /sdk$otherarch
15
+ then
16
+ othersdk=" ${rootdir% ??} $otherarch "
17
+ test ! -d " $othersdk " ||
18
+ mount " $othersdk " /sdk$otherarch 2> /dev/null
19
+ fi
20
+ ;;
21
+ esac
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ grep -v -e '\.[acho]$' -e '\.l[ao]$' -e '/aclocal/' \
72
72
-e ' ^/usr/share.*/magic$' \
73
73
-e ' ^/usr/share/perl5/core_perl/Unicode/Collate/Locale/' \
74
74
-e ' ^/usr/share/perl5/core_perl/pods/' \
75
- -e ' ^/usr/share/vim/vim74/lang/' |
75
+ -e ' ^/usr/share/vim/vim74/lang/' \
76
+ -e ' ^/etc/profile.d/git-sdk.sh$' |
76
77
if test -n " $WITH_L10N "
77
78
then
78
79
cat
You can’t perform that action at this time.
0 commit comments