Commit 7283556 1 parent d930be0 commit 7283556 Copy full SHA for 7283556
File tree 4 files changed +51
-4
lines changed
4 files changed +51
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
pkgname=(' git-extra' )
4
4
_ver_base=1.1
5
- pkgver=1.1.71.b45c943
5
+ pkgver=1.1.73.6e1b584
6
6
pkgrel=1
7
7
pkgdesc=" Git for Windows extra files"
8
8
arch=(' i686' ' x86_64' )
@@ -38,6 +38,7 @@ package() {
38
38
install -d -m755 $pkgdir /usr/bin
39
39
install -d -m755 $pkgdir /usr/share/git
40
40
install -d -m755 $pkgdir /$mingwdir /bin
41
+ install -d -m755 $pkgdir /$mingwdir /etc
41
42
install -m644 $startdir /inputrc $pkgdir /etc
42
43
install -m644 $startdir /vimrc $pkgdir /etc
43
44
install -m755 $startdir /vi $pkgdir /usr/bin
@@ -50,4 +51,7 @@ package() {
50
51
install -m755 $startdir /bash_profile.sh $pkgdir /etc/profile.d
51
52
install -m644 $startdir /msys2-32.ico $pkgdir /usr/share/git
52
53
install -m644 $startdir /99-post-install-cleanup.post $pkgdir /etc/post-install
54
+ install -m755 $startdir /astextplain $pkgdir /$mingwdir /bin
55
+ install -m755 $startdir /gitconfig $pkgdir /$mingwdir /etc
56
+ install -m755 $startdir /gitattributes $pkgdir /$mingwdir /etc
53
57
}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+ # minimalistic replacement for `run-mailcap --action=cat <file>`
3
+
4
+ if test " $# " ! = 1 ; then
5
+ echo " Usage: astextplain <file>" 1>&2
6
+ exit 1
7
+ fi
8
+
9
+ # XXX output encoding (UTF-8) hardcoded
10
+ case " $1 " in
11
+ * .doc | * .DOC | * .dot | * .DOT)
12
+ antiword -m UTF-8 " $1 " || cat " $1 "
13
+ ;;
14
+ * .docx | * .DOCX)
15
+ docx2txt.pl " $1 " -
16
+ ;;
17
+ * .pdf | * .PDF)
18
+ pdftotext -layout " $1 " -enc UTF-8 -
19
+ ;;
20
+ # TODO add rtf support
21
+ * .rtf | * .RTF)
22
+ cat " $1 "
23
+ ;;
24
+ * )
25
+ echo " E: unsupported filetype $1 " 1>&2
26
+ exit 1
27
+ ;;
28
+ esac
29
+
30
+ exit 0
Original file line number Diff line number Diff line change
1
+ *.doc diff=astextplain
2
+ *.DOC diff=astextplain
3
+ *.docx diff=astextplain
4
+ *.DOCX diff=astextplain
5
+ *.dot diff=astextplain
6
+ *.DOT diff=astextplain
7
+ *.pdf diff=astextplain
8
+ *.PDF diff=astextplain
9
+ *.rtf diff=astextplain
10
+ *.RTF diff=astextplain
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ pacman_list () {
28
28
}
29
29
30
30
# Packages that have been added after Git SDK 1.0.0 was released...
31
- pacman -S --needed --noconfirm mingw-w64-$ARCH -connect git-flow >&2 ||
31
+ pacman -S --needed --noconfirm mingw-w64-$ARCH -connect git-flow unzip docx2txt mingw-w64- $ARCH -antiword >&2 ||
32
32
die " Could not install required packages"
33
33
34
34
pacman_list mingw-w64-$ARCH -git mingw-w64-$ARCH -git-doc-html \
35
35
git-extra ncurses mintty vim openssh winpty \
36
36
sed awk less grep gnupg tar findutils coreutils diffutils patch \
37
37
dos2unix which subversion mingw-w64-$ARCH -tk \
38
- mingw-w64-$ARCH -connect git-flow " $@ " |
38
+ mingw-w64-$ARCH -connect git-flow docx2txt mingw-w64- $ARCH -antiword " $@ " |
39
39
grep -v -e ' \.[acho]$' -e ' \.l[ao]$' -e ' /aclocal/' \
40
40
-e ' /man/' -e ' /pkgconfig/' -e ' /emacs/' \
41
41
-e ' ^/usr/lib/python' -e ' ^/usr/lib/ruby' \
@@ -71,7 +71,7 @@ grep --perl-regexp -v -e '^/usr/(lib|share)/terminfo/(?!.*/(cygwin|dumb|xterm.*)
71
71
sed ' s/^\///'
72
72
73
73
test -z " $PACKAGE_VERSIONS_FILE " ||
74
- pacman -Q filesystem dash rebase util-linux > >" $PACKAGE_VERSIONS_FILE "
74
+ pacman -Q filesystem dash rebase util-linux unzip > " $PACKAGE_VERSIONS_FILE "
75
75
76
76
cat << EOF
77
77
etc/profile
@@ -89,4 +89,7 @@ usr/bin/dash.exe
89
89
usr/bin/rebase.exe
90
90
usr/bin/rebaseall
91
91
usr/bin/getopt.exe
92
+ mingw$BITNESS /bin/astextplain
93
+ mingw$BITNESS /etc/gitattributes
94
+ usr/bin/unzip.exe
92
95
EOF
You can’t perform that action at this time.
0 commit comments