repo.or.cz
/
msysgit
/
kirr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove 7-Zip's vanilla 7zS.sfx as it is unused
[msysgit/kirr.git]
/
bin
/
wordpad
blob
7ce7937eef77c045a1ae31653a67a985302db449
1
#!/bin/sh
2
3
WORDPAD
=
"$(ls {"
$PROGRAMFILES
/
Windows NT
","
$SYSTEMROOT
"}/*/wordpad.exe 2>&- | head -1)"
4
5
test
$#
=
1
&&
6
case
"
$1
"
in
7
\\
*
|
/*
|?
:*) ;;
# do nothing
8
*)
set
"$(pwd -W)/
$1
"
;;
9
esac
10
11
test -x
"
$WORDPAD
"
&&
exec
"
$WORDPAD
"
"$@"
12
13
echo
"Could not launch
$WORDPAD
"
14
exit
1