creating zip without recording root paths; programmatically creating zip without recording root paths; programmatically shell shell

creating zip without recording root paths; programmatically


Oddly enough, your best option may be to use jar from the Java JDK.

jar -cMf c:/Users/xah/xx2/build-util.zip -C c:/Users/xah/ErgoEmacs_Source/ergoemacs/build-util/ .

the "-M" tells jar not to create a manifest file and the -C tells it to change directories before beginning zipping files up. The documentation I based this off of is here:http://download.oracle.com/javase/tutorial/deployment/jar/build.html


One of my favorite bash functions is pushd, it saves the dirrectory you are currently in and moves you to the directory you specify. The reciprocal function is popd, it moves you back to the directory you were in before pushd.For example you do

pushd c:/Users/xah/ErgoEmacs_Source/ergoemacszip -r c:/Users/xah/xx2/build-util.zip build-util/popd

I think you wind up with what you want.