|
How To -
Subversion (SVN)
|
|
Written by Christian Foronda
|
|
Wednesday, 22 February 2012 13:00 |
|
How to set up commit notification for a repository hosting multiple projects.
This involves the use of the post-commit hook. Here's how it works: After the subversion repository successfully commits a change, if it finds an executable file, /path/to/svn/hooks/post-commit, it will be invoked with two arguments. The first is the path to the repository, and the second is the revision number of the commit.
Since the repository is hosting multiple projects, each top-level project has it's own mailing list. This way, they don't spam each project with every change to unrelated projects in the repository. So, based on arguments passed to post-commit, start by determining which project the change was relevant to. Use the svnlook utility for this:
PROJ=`/usr/local/bin/svnlook dirs-changed -r $2 $1|head -1|sed -e 's/\/.*//g'`
|
|
Last Updated on Wednesday, 22 February 2012 14:20 |
|
Read more...
|
|
How To -
Nginx
|
|
Written by Christian Foronda
|
|
Wednesday, 20 July 2011 19:08 |
|
This tutorial is tested only on CentOS 6.0 but might also work on future CentOS 6 versions.
This is done on a bare install of CentOS 6.
Update your packages:
# yum -y update
|
|
Last Updated on Friday, 22 July 2011 08:22 |
|
Read more...
|
|
How To -
Lighttpd
|
|
Written by Christian Foronda
|
|
Wednesday, 20 July 2011 13:30 |
|
This tutorial is tested on a bare installation of CentOS 6.
Install wget:
# yum install wget
Install RPMforge repository:
# wget -c http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Temporarily disable SELinux:
# echo 0 > /selinux/enforce
|
|
Last Updated on Wednesday, 20 July 2011 14:27 |
|
Read more...
|
|
How To -
Solaris
|
|
Written by Christian Foronda
|
|
Tuesday, 05 July 2011 19:05 |
|
Recently, after pkg-get upgrade on Solaris 5.10. I encountered a missing file error:
libintl.so.8: open failed: No such file or directory
Reinstalling libintl8 fix the problem. Go to ibiblio.org repository and download the latest version:
# /bin/wget -c http://mirrors.ibiblio.org/pub/mirrors/opencsw/current/sparc/5.10/libintl2-0.18.1.1,p,REV=2011.02.12-SunOS5.9-sparc-CSW.pkg.gz
Install the package:
# gunzip libintl2-0.18.1.1,p,REV=2011.02.12-SunOS5.9-sparc-CSW.pkg.gz
# pkgadd -d libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-sparc-CSW.pkg
|
|
How To -
Nginx
|
|
Written by Christian Foronda
|
|
Friday, 01 July 2011 11:30 |
|
This tutorial is tested only on CentOS 5.6 but might also work on other CentOS 5 versions.
This is done on a fresh install of CentOS 5.6.
Update your packages:
# yum -y update
|
|
Read more...
|