SVN Export in Lamp Server
#sh svnexp.sh
#!/bin/bash
#Exports projects from svn
cd /var/www/html/
cp -arp $1/upload /tmp/
rm -rf $1
rm -rf $1.tar.gz
svn export svn://10.10.10.231/$1/trunk $1
cd $1
yes| cp -arp /tmp/upload .
rm -rf /tmp/upload
chmod -R 777 cache custom config.php config_override.php logs upload
chmod -R 777 sites/default/files/
cd ..
# chmod + x svnexp.sh
# mv /bin/bash
# it work for every project as a command
# svnexp projectname
Comments
Post a Comment