From: Mike N. <mh...@us...> - 2003-02-24 19:21:21
|
On Mon, 2003-02-10 at 11:52, Adam Morton wrote: > I wrote a shell script that will remotely checkout and build a phpwebsite > installation for you. Make sure you edit the settings at the top to > reflect the directory you want the installation to go into and the > username on the remote string if you are not doing an anonymous checkout. > You can also tweak which modules you wish to have installed. The > secure_phpws script is run at the end as a non root user for setup. So > make sure to fix your permissions after you run the web based installer. Adam, I have a diff for your shell script. Instead of checking out modules it exports them based on tags. This will allow developers to work from known tag points, and avoids the unnecessary CVS directory clutter checkout creates. $ diff -u ~/leaf/phpwebsite/build_phpws.sh ~/bin/build_phpws.sh --- /home/mhnoyes/leaf/phpwebsite/build_phpws.sh Mon Feb 24 09:22:19 2003+++ /home/mhnoyes/bin/build_phpws.sh Mon Feb 24 11:00:25 2003 @@ -27,25 +27,28 @@ # Themes to check out THEMES="AHP clean Default gax mainsite shiny winxp" +# Tag to retrieve from repository +TAG=HEAD + ################################################ # END SETTINGS: Do not edit beyond this line!! # ################################################ # Grab the phpwebsite core and core modules -cvs $REMOTE co phpwebsite +cvs $REMOTE -q ex -r"$TAG" phpwebsite for i in $CORE_MODULES; do - cvs $REMOTE co $i + cvs $REMOTE -q ex -r"$TAG" $i mv $i phpwebsite/mod/ done # Grab any extra modules the user wants for i in $OTHER_MODULES; do - cvs $REMOTE co $i + cvs $REMOTE -q ex -r"$TAG" $i mv $i phpwebsite/mod/ done # Check out all themes and pick each one out individually -cvs $REMOTE co themes +cvs $REMOTE -q ex -r"$TAG" themes for i in $THEMES; do mv themes/$i phpwebsite/themes/ done -- Mike Noyes <mhnoyes @ users.sourceforge.net> http://sourceforge.net/users/mhnoyes/ http://leaf-project.org/ http://sitedocs.sf.net/ http://ffl.sf.net/ |