updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / phpundercontrol-git / phpundercontrol-git.install
blob3034bd5b6707a714a3bb8ccebd5fde2fe8cada05
1 post_install() {
2         # Install phpUnderControl
3         /opt/phpundercontrol/bin/phpuc.php install /opt/cruisecontrol \
4                 | grep -i 'creating file' \
5                 | awk '{print $4}' \
6                 | tr -d '"' \
7                 > /opt/phpundercontrol/FILES
10 pre_upgrade() {
11         # Move backup files back after upgrading or removing package
12         for f in `find /opt/cruisecontrol -name "*.orig"`; do
13                 mv $f `echo $f | sed 's/\.[^\.]*$//'`
14         done
17 pre_remove() {
18         # Remove phpUnderControl installed files
19         for f in `cat /opt/phpundercontrol/FILES`; do
20                 rm /opt/cruisecontrol/$f
21         done
23         rm /opt/phpundercontrol/FILES
26 post_remove() {
27         pre_upgrade