[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Adding a file to repos with a post commit hook?

From: Ethan Schlenker <ethans_at_gamespot.com>
Date: Tue, 12 Feb 2008 15:35:55 -0800

Aloha,

I'm working on a way to automatically compress / minify our javascript
files when committed, and want to run my current plan past the powers
that be. I'm thinking that this flow may work:

- commit files including a .js file

- post-commit hook checks the files committed for normal .js files, if
found:
     - grabs file, runs it through a minifier, and writes out
a .min.js file in the same location as the original .js script
     - then adds? and commits the .min.js file

Or, I might be crazy (not sure if I can get the hook script to
actually create/overwrite the existing file or do a add?/commit).
Basically, I don't want to have our devs to remember to compress the
files, and I want the compressed files saved in svn.

Does this seem cromulent? Or there a better way? Any advice would be
welcome, and if I get this working, I'd be happy to share the script.

-E

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-13 00:36:14 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.