UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4543 /base/archives.bat
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    Scripts (.ufo)
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/416 Item 416] imported from sourceforge.net tracker on 2013-01-28 20:39:33

Hi,

Hi,

I read the archives.bat batch file in /base, and realises that it works on updating files only.

My question is what if there are new update / revised files?

Can i propose the original code
Code:
rem NOTE: This batch file requires you to have the 7-zip command line utility, 7za.exe, in your path.
rem You can get this utility here: http://www.7-zip.org/download.html
rem -r recurse subdirectories. for example, this ensures that 0models.pk3 will contain stuff from "models\aliens" as well as "models".

7za a -tzip 0base.pk3 *.cfg irc_motd.txt -x!".svn"
7za a -r -tzip 0maps.pk3 materials\*.mat maps\*.bsp maps\*.ump -x!".svn"
7za a -r -tzip 0media.pk3 shaders\*.fp shaders\*.vp media\*.ttf -x!".svn"
7za a -r -tzip 0models.pk3 models\*.md2 models\*.md3 models\*.jpg models\*.png models\*.tga models\*.anm models\*.txt models\*.tag -x!".svn"
7za a -r -tzip 0music.pk3 music\*.ogg -x!".svn"
7za a -r -tzip 0pics.pk3 pics\*.jpg pics\*.tga pics\*.png textures\*.jpg textures\*.tga textures\*.png -x!".svn"
7za a -r -tzip 0snd.pk3 sound\*.ogg sound\*.wav -x!".svn"
7za a -r -tzip 0ufos.pk3 ufos\*.ufo -x!".svn"
7za a -r -tzip 0vids.pk3 videos\*.roq -x!".svn"

be updated to:
<See attached file>

Reason:
The a is for adding files to archives.
u is for updating, which should include adding new files, and refreshing old files.

For the uninformed of what the breakdown of the command is:
7za - the program used, 7za (a dos version of 7zip, a free archiver)
a - add files
u - update files
-tzip - specifies the type of archives, in this case, type = zip
the pk3 file name - eg 0vids.pk3 = the name of the archive
This is followed by a path\*.extension = the files to be archives, in this case is a wildcard.
-x".svn" = this tells the batch file not to include the file .svn, which is the file used for SVN updates and such.
===== Comments Ported from Sourceforge =====

====== odiewoof (2009-04-15 07:57:25) ======

Proposed New Batch File for Archives.bat in Compiling pk3 Files.
====== tlh2000 (2009-04-15 16:53:30) ======

please only upload patches
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif