home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem %W% %G%
- rem
- rem Script to archive and compress a repository or project directory.
- rem
- rem Assumes that %M4_home% has been set correctly.
- rem
-
- set tarcmd=%M4_home%\contrib\modules\archivecmds-win\bin\gnu-tar.exe
- set zipcmd=%M4_home%\contrib\modules\archivecmds-win\bin\gnu-gzip.exe
-
- set src=%1
- set dst=%2
- set dstT=%dst%.tar
- set dstZ=%dst%.tgz
-
- echo Creating archive %dstT% ...
- %tarcmd% cf %dstT% %src%
- echo.
-
- echo Compressing archive into %dstZ% ...
- %zipcmd% >%dstZ% -c %dstT%
- del %dstT%
- echo.
-
- echo Ready.
-