jump to navigation

svn:externals Май 15, 2009

Posted by russenreaktor in development.
Tags:
add a comment

«This assumes that your project layout looks something like this:

project/
branch/
production/
tag/
trunk/

* In the top of your project trunk, execute the following:

svn propedit svn:externals .

* This will open an editor session. In the file opened by your editor, each line indicates a different external svn repo to pull. The first segment of the line is the directory where you want the pull to exist. The last segment is the svn repo URL to pull. You can have an optional middle argument indicating the revision to use. Some examples:
o Pull framework repo from head:

framework http://framework.zend.com/svn/framework/trunk

o Pull framework repo from revision 2616:

framework -r2616 http://framework.zend.com/svn/framework/trunk

* After saving and exiting, update the repo:

svn up

* Commit changes:

svn commit

One thing to note: any directory you specify for an svn:externals checkout should not already exist in your repository. If it does, you will get an error like the following:

svn: Working copy ’sharedproject’ locked
svn: run ’svn cleanup’ to remove locks
» weierophinney.net

After that add default username for svn host (because we do not have username of external repository)

  • Linux
vi ~/.ssh/config
Host svn.wn.d-o-m.org
User <svnuser>
  • Windows – set default username for <svn-host> via putty

InnoSetup – exclude files Март 20, 2009

Posted by russenreaktor in development.
add a comment

«Specifies a list of patterns to exclude, separated by commas. This parameter cannot be combined with the external flag.

Patterns may include wildcard characters («*» and «?»). Note that unlike the Source parameter, a simple Unix-style pattern matching routine is used for Excludes. Dots in the pattern are always significant, thus «*.*» will not exclude a file with no extension (instead, use just «*»). Also, question marks always match exactly one character, thus «?????» will not exclude files with names less than five characters long.

If a pattern starts with a backslash («») it is matched against the start of a path name, otherwise it is matched against the end of a path name. Thus «foo» will only exclude a file named «foo» at the base of the tree. On the other hand, «foo» will exclude any file named «foo» anywhere in the tree.

The patterns may include backslashes. «foobar» will exclude both «foobar» and «subdirfoobar». «foobar» will only exclude «foobar».
Examples:

Source: «*»; Excludes: «*.~*»
Source: «*»; Excludes: «*.~*,Temp*»; Flags: recursesubdirs
» downloadatoz.com

HOWTO: Automatically get svn revisions number under windows Март 19, 2009

Posted by russenreaktor in development.
add a comment

«The example below shows how keywords in a template file are substituted in the output file.

// Test file for SubWCRev: testfile.tmpl

char *Revision = «$WCREV$»;
char *Modified = «$WCMODS?Modified:Not modified$»;
char *Date = «$WCDATE$»;
char *Range = «$WCRANGE$»;
char *Mixed = «$WCMIXED?Mixed revision WC:Not mixed$»;
char *URL = «$WCURL$»;

#if $WCMODS?1:0$
#error Source is modified
#endif

// End of file

After running SubWCRev.exe path\to\workingcopy testfile.tmpl testfile.txt, the output file testfile.txt would looks like this:

// Test file for SubWCRev: testfile.txt

char *Revision = «3701″;
char *Modified = «Modified»;
char *Date = «2005/06/15 11:15:12″;
char *Range = «3699:3701″;
char *Mixed = «Mixed revision WC»;
char *URL = «http://tortoisesvn.tigris.org/svn/tortoisesvn/…
trunk/src/SubWCRev»;

#if 1
#error Source is modified
#endif

// End of file
» tortoisesvn.net

PERL: Snippet which traverses from root folder to sub folder inside it Ноябрь 17, 2008

Posted by russenreaktor in development, linux, perl, programming.
Tags: ,
add a comment

«#!/usr/bin/perl
use strict;

&smash(«/archive»);

sub smash {
my $dir = shift;
opendir DIR,
$dir or return;
my @contents = map «$dir/$_», sort grep !/^\.\.?$/, readdir DIR;
closedir DIR;
foreach (@contents) {
next unless !-l && -d;
&smash($_);
}
forums.devshed.com

TracOnWindows Октябрь 21, 2008

Posted by russenreaktor in development, windows.
Tags: , , , , ,
add a comment

«Installing Python on Windows»

http://trac.edgewall.org/wiki/TracOnWindows