Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is zip command inbuilt in windows? #1

Open
vksvgithub opened this issue May 9, 2015 · 4 comments
Open

Is zip command inbuilt in windows? #1

vksvgithub opened this issue May 9, 2015 · 4 comments

Comments

@vksvgithub
Copy link

Hi Andre,
I need to archive a git repo with submodules and I found your script which is supposed to work on windows. How do I execute the script? I mean, where should the script (git-archive-all.bat) be executed? From Windows Command Prompt or Git Bash on Windows? The first complains that zip cannot be found. The latter complains about syntax error. I am currently using Windows 7. Please let me know the environment on which this script needs to be run.

Thanks,
Vimal.

@AndreLouisCaron
Copy link
Owner

Hi Vimal,

It's a batch file, so you can't run it under Git Bash. You need to run it
from a normal command prompt.

The script assumes the "zip" program provided by MSysGit is in the current
path. You probably need to add MSysGit's bin folder to your path to make
it work.

Best of luck,

André

On Fri, May 8, 2015 at 8:07 PM, vksvgithub [email protected] wrote:

Hi Andre,
I need to archive a git repo with submodules and I found your script which
is supposed to work on windows. How do I execute the script? I mean, where
should the script (git-archive-all.bat) be executed? From Windows Command
Prompt or Git Bash on Windows? The first complains that zip cannot be
found. The latter complains about syntax error. I am currently using
Windows 7. Please let me know the environment on which this script needs to
be run.

Thanks,
Vimal.


Reply to this email directly or view it on GitHub
#1.

@vksvgithub
Copy link
Author

Thank you Andre. But I could not find the zip program to be part of the MSysGit install on my Windows 7 machine (1.8.3.msysgit.0).

The contents of my C:\Program Files (x86)\Git\Bin is below

antiword.exe
astextplain
awk
basename.exe
bash.exe
bison.exe
bunzip2
bzip2.exe
cat.exe
chmod.exe
clear
cmp.exe
connect.exe
cp.exe
curl-ca-bundle.crt
curl.exe
cut.exe
c_rehash
date.exe
diff.exe
dirname.exe
docx2txt
dos2unix.exe
du.exe
echo
egrep
env.exe
expr.exe
false.exe
find.exe
flex.exe
gawk.exe
getcp.exe
git.exe
gitk
gpg-zip
gpg.exe
gpgkeys_curl.exe
gpgkeys_finger.exe
gpgkeys_hkp.exe
gpgkeys_ldap.exe
gpgsplit.exe
gpgv.exe
grep.exe
gunzip.exe
gzip.exe
head.exe
id.exe
kill.exe
less.exe
libapr-0-0.dll
libaprutil-0-0.dll
libcrypto.dll
libcurl.dll
libexpat-0.dll
libgsasl-7.def
libgsasl-7.dll
libiconv-2.dll
libiconv2.dll
libneon-25.dll
libpoppler-7.dll
libssl.dll
libsvn_client-1-0.dll
libsvn_delta-1-0.dll
libsvn_diff-1-0.dll
libsvn_fs-1-0.dll
libsvn_fs_fs-1-0.dll
libsvn_ra-1-0.dll
libsvn_ra_dav-1-0.dll
libsvn_ra_local-1-0.dll
libsvn_ra_svn-1-0.dll
libsvn_repos-1-0.dll
libsvn_subr-1-0.dll
libsvn_swig_perl-1-0.dll
libsvn_wc-1-0.dll
libW11.dll
libz.dll
ln.exe
ls.exe
m4.exe
md5sum.exe
mkdir.exe
msmtp.exe
msys-1.0.dll
msys-crypto-0.9.8.dll
msys-minires.dll
msys-perl5_8.dll
msys-regex-1.dll
msys-ssl-0.9.8.dll
msys-z.dll
msysltdl-3.dll
mv.exe
openssl.exe
patch.exe
patch.exe.manifest
pdfinfo.exe
pdftotext.exe
perl.exe
printf
ps.exe
pthreadGC2.dll
pwd
rebase.exe
recodetree
rm.exe
rmdir.exe
rxvt.exe
scp.exe
sed.exe
sh.exe
sleep.exe
sort.exe
split.exe
ssh-add.exe
ssh-agent.exe
ssh-keygen.exe
ssh-keyscan.exe
ssh.exe
start
tail.exe
tar.exe
tcl85.dll
tclpip85.dll
tclsh.exe
tclsh85.exe
tee.exe
tk85.dll
touch.exe
tr.exe
true.exe
uname.exe
uniq.exe
unzip.exe
vi
vim
wc.exe
which
wish.exe
wish85.exe
xargs.exe
yacc

Thanks,
Vimal.

Date: Fri, 8 May 2015 21:01:10 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [git-archive-all.bat] Is zip command inbuilt in windows? (#1)

Hi Vimal,

It's a batch file, so you can't run it under Git Bash. You need to run it

from a normal command prompt.

The script assumes the "zip" program provided by MSysGit is in the current

path. You probably need to add MSysGit's bin folder to your path to make

it work.

Best of luck,

André

On Fri, May 8, 2015 at 8:07 PM, vksvgithub [email protected] wrote:

Hi Andre,

I need to archive a git repo with submodules and I found your script which

is supposed to work on windows. How do I execute the script? I mean, where

should the script (git-archive-all.bat) be executed? From Windows Command

Prompt or Git Bash on Windows? The first complains that zip cannot be

found. The latter complains about syntax error. I am currently using

Windows 7. Please let me know the environment on which this script needs to

be run.

Thanks,

Vimal.

Reply to this email directly or view it on GitHub

#1.


Reply to this email directly or view it on GitHub.

@AndreLouisCaron
Copy link
Owner

Hi!

To be honest, I haven't used this program in a long time. I changed my PC
since then and I can't find the zip program on my compute either. It
doesn't seem to be part of MSys nor of MinGW...

Sorry for the confusion!

Best of luck,

André

On Tue, May 12, 2015 at 4:23 PM, vksvgithub [email protected]
wrote:

Thank you Andre. But I could not find the zip program to be part of the
MSysGit install on my Windows 7 machine (1.8.3.msysgit.0).

The contents of my C:\Program Files (x86)\Git\Bin is below

antiword.exe
astextplain
awk
basename.exe
bash.exe
bison.exe
bunzip2
bzip2.exe
cat.exe
chmod.exe
clear
cmp.exe
connect.exe
cp.exe
curl-ca-bundle.crt
curl.exe
cut.exe
c_rehash
date.exe
diff.exe
dirname.exe
docx2txt
dos2unix.exe
du.exe
echo
egrep
env.exe
expr.exe
false.exe
find.exe
flex.exe
gawk.exe
getcp.exe
git.exe
gitk
gpg-zip
gpg.exe
gpgkeys_curl.exe
gpgkeys_finger.exe
gpgkeys_hkp.exe
gpgkeys_ldap.exe
gpgsplit.exe
gpgv.exe
grep.exe
gunzip.exe
gzip.exe
head.exe
id.exe
kill.exe
less.exe
libapr-0-0.dll
libaprutil-0-0.dll
libcrypto.dll
libcurl.dll
libexpat-0.dll
libgsasl-7.def
libgsasl-7.dll
libiconv-2.dll
libiconv2.dll
libneon-25.dll
libpoppler-7.dll
libssl.dll
libsvn_client-1-0.dll
libsvn_delta-1-0.dll
libsvn_diff-1-0.dll
libsvn_fs-1-0.dll
libsvn_fs_fs-1-0.dll
libsvn_ra-1-0.dll
libsvn_ra_dav-1-0.dll
libsvn_ra_local-1-0.dll
libsvn_ra_svn-1-0.dll
libsvn_repos-1-0.dll
libsvn_subr-1-0.dll
libsvn_swig_perl-1-0.dll
libsvn_wc-1-0.dll
libW11.dll
libz.dll
ln.exe
ls.exe
m4.exe
md5sum.exe
mkdir.exe
msmtp.exe
msys-1.0.dll
msys-crypto-0.9.8.dll
msys-minires.dll
msys-perl5_8.dll
msys-regex-1.dll
msys-ssl-0.9.8.dll
msys-z.dll
msysltdl-3.dll
mv.exe
openssl.exe
patch.exe
patch.exe.manifest
pdfinfo.exe
pdftotext.exe
perl.exe
printf
ps.exe
pthreadGC2.dll
pwd
rebase.exe
recodetree
rm.exe
rmdir.exe
rxvt.exe
scp.exe
sed.exe
sh.exe
sleep.exe
sort.exe
split.exe
ssh-add.exe
ssh-agent.exe
ssh-keygen.exe
ssh-keyscan.exe
ssh.exe
start
tail.exe
tar.exe
tcl85.dll
tclpip85.dll
tclsh.exe
tclsh85.exe
tee.exe
tk85.dll
touch.exe
tr.exe
true.exe
uname.exe
uniq.exe
unzip.exe
vi
vim
wc.exe
which
wish.exe
wish85.exe
xargs.exe
yacc

Thanks,
Vimal.

Date: Fri, 8 May 2015 21:01:10 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [git-archive-all.bat] Is zip command inbuilt in windows? (#1)

Hi Vimal,

It's a batch file, so you can't run it under Git Bash. You need to run it

from a normal command prompt.

The script assumes the "zip" program provided by MSysGit is in the current

path. You probably need to add MSysGit's bin folder to your path to make

it work.

Best of luck,

André

On Fri, May 8, 2015 at 8:07 PM, vksvgithub [email protected]
wrote:

Hi Andre,

I need to archive a git repo with submodules and I found your script
which

is supposed to work on windows. How do I execute the script? I mean,
where

should the script (git-archive-all.bat) be executed? From Windows Command

Prompt or Git Bash on Windows? The first complains that zip cannot be

found. The latter complains about syntax error. I am currently using

Windows 7. Please let me know the environment on which this script needs
to

be run.

Thanks,

Vimal.

Reply to this email directly or view it on GitHub

#1.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#1 (comment)
.

@henhal
Copy link

henhal commented Feb 16, 2017

Old thread, but in case someone else finds this issue while searching for the same problem: my solution was to install Gow. It comes with the zip command (and lots of other stuff).

After installation, the binaries from Gow are added to the system bin path automatically and should be accessible also from MSysGit (after restarting the shell).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants