batch pour archivetool

Des questions sur comment marche l'éditeur, comment faire ci ou ça ? C'est ici.

batch pour archivetool

Messagepar jiaco » Dim Avr 04, 2010 7:05 pm

Messages extraits du fil de discussion pour la beta du DC 1.2
http://www.titanquest-fr.com/forum/post75655.html#75655

jiaco a écrit: Tout le code sera mis à disposition sur github bientôt.

http://github.com/jiaco
Nothing ... :roll:

Vu la pénibilité pour ajouter des sous-dossiers avec arctool.exe, ma méthode de compilation consiste à passer par l'art manager, dans un mod prévu à cet effet. Mais c'est long d'extraire les fichiers (arcexplorer.exe) de faire des copier / coller, remplacement, ect ect.
Jiaco, si tu as créé un programme qui compile facilement des fichiers + sous-dossiers ça m'intéresse vraiment.

Ctrl-Alt-Suppr.
──────────────────────────────────────────



Ctrl-Alt-Suppr a écrit: Nothing ... :roll:

J'ai un gros bazard de code. Pas du tout prêts à partager et en aucun cas pouvoir être utilisée par quelqu'un d'autre que moi, pour le moment. Désolé, mais j'ai été de le nettoyer, peu à peu, et il sera libéré lorsque utilisable. Il est tout en C + + et fonctionne uniquement en ligne de commande (MSYS). Pouvez-vous utiliser MSYS?

EDIT: pour l'arc, je n'ai que des programmes qui peuvent lire, quand je leur ai réécrit, ils ne travaillent pas. J'ai donc utiliser des scripts avec arctool. Je crains que mes affaires ne peuvent pas aider dans votre cas.

(I fear that google translate may not have done so well on that last part ) :oops:
jiaco
Chasseur de Rats
 
Messages: 7
Inscription: Jeu Mar 18, 2010 8:41 pm

Messagepar Ctrl-Alt-Suppr » Dim Avr 04, 2010 7:31 pm

Ok ... tanks for your answer.

My probleme is just than -add "xxxxxx.tex" 9 works
but -add "repertory\xxxxxx.tex" 9 doesn't works
(I don't know the working command .....)

So .... an external tool that compiles easily repertory and all its files, would be welcome!
Avatar de l’utilisateur
Ctrl-Alt-Suppr
Administrateur
 
Messages: 5918
Inscription: Jeu Juin 29, 2006 5:33 pm

Messagepar jiaco » Dim Avr 04, 2010 7:38 pm

Tout d'abord, il s'agit d'un forum français, (et je peux lire de fine cuisine française, donc s'il vous plaît, ne pas passer à l'anglais à cause de moi).

Je pense que vous avez juste besoin d'apprendre à utiliser arctool. Je vais chercher certains de mes scripts et les poster ici plus tard ce soir.

(I purposefully left the wonderful google translate error on french food as I found it funny.)

EDIT: ok here is a bash script with some comments but it is not what you want. I played around a little and I think I figured out the usage for what you are trying to do, maybe it will help you.

Code: Tout sélectionner
# Master arc file called master.arc
# Target arc file to merge called target.arc
# use ArchiveTool to extract target.arc into subfolder called target

./ArchiveTool.exe /c/user/path/to/here/target.arc -extract /c/user/path/to/here/target

for f in target/*
do
    r=${f#target/}
    cp $f $r
    ./ArchiveTool.exe /c/user/path/to/here/master.arc -add . $r
    rm $r
done

This needs to have the FULL PATH in argument 2 and the subtle "." (dot) argument after the -add flag. Then each file inside the target folder will be added into the master.arc file.

Copy the ArchiveTool.exe and the stlport_vc7146.dll library into the working folder.

Should be possible to do with .BAT files too, but I have no idea how. the for loop is going over every file inside the target folder and the
first command trims the path from target/xxx.tex to xxx.tex (for example).

If you wanted a new subfolder inside the master.arc do this
Code: Tout sélectionner
./ArchiveTool.exe /c/user/path/to/here/master.arc -add  target .


it will add everything inside the target folder into the archive in a subfolder named target. This time the "." dot argument comes at the end. (I do not really know what it means, but it seems to work)
jiaco
Chasseur de Rats
 
Messages: 7
Inscription: Jeu Mar 18, 2010 8:41 pm


Retourner vers Éditeur - Comment ça marche ?

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités