Skip to content

Commit

Permalink
update to match my local update-web script.
Browse files Browse the repository at this point in the history
2008-01-29 11:41:37  Tim Janik  <[email protected]>

        * install.sh: update to match my local update-web script.



svn path=/trunk/; revision=613
  • Loading branch information
11:41:37 Tim Janik authored and Tim Janik committed Jan 29, 2008
1 parent 798056a commit e374ac7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2008-01-29 11:41:37 Tim Janik <[email protected]>

* install.sh: update to match my local update-web script.

2008-01-29 11:21:54 Tim Janik <[email protected]>

* removed tutorial2.0/ cruft.
Expand Down
54 changes: 21 additions & 33 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
#!/bin/sh

CVSDIR=`pwd`

if test "x$1" != x ; then
INSTALLDIR=$1
else
echo 2>&1 "Usage: install.sh DESTDIR"
exit 1
fi

rsync -rlt --omit-dir-times --delete --exclude-from=$CVSDIR/install.exclude $CVSDIR/ $INSTALLDIR/

make_link () {
from=$1
to=$2

todir=`dirname $to`
tobase=`basename $to`

( cd $INSTALLDIR/$todir && rm -f $tobase && ln -s ../$from $tobase )
# update gtk.org
# /home/timj/svn/gtk-web/install.sh /web/gtk # not called directly to prevent forged commands
# diff -up update-web /home/timj/svn/gtk-web/install.sh
true && {
SRCDIR=/home/timj/svn/gtk-web
INSTALLDIR=/web/gtk
cd $SRCDIR
svn update

rsync -rlt --delete --omit-dir-times --exclude-from=$SRCDIR/install.exclude $SRCDIR/ $INSTALLDIR/

for dir in api beos download faq screenshots success plan plan/2.4 plan/2.6 plan/2.8 plan/2.10 plan/ideas plan/meetings ; do
for page in site_top.html site_bottom.html box_middle.html box_end.html box_begin.html section_end.html section_begin.html ; do
( cd $INSTALLDIR/$dir/ && rm -f $page && ln -s ../$page $page )
done
done

( cd $INSTALLDIR
find . ! -group gtk -exec chgrp gtk \{\} \;
find . -type f -a ! -perm -0060 -exec chmod g+rw \{\} \;
find . -type d -a ! -perm -0070 -exec chmod g+rwx \{\} \; )
}

for i in api beos download faq screenshots success plan plan/2.4 plan/2.6 plan/2.8 plan/2.10 plan/ideas plan/meetings ; do
for j in site_top.html site_bottom.html box_middle.html box_end.html box_begin.html section_end.html section_begin.html ; do
make_link $j $i/$j
done
done

( cd $INSTALLDIR && ln -s tutorial2.0 tutorial )

( cd $INSTALLDIR
find . ! -group gtk -exec chgrp gtk \{\} \;
find . -type f -a ! -perm -0060 -exec chmod g+rw \{\} \;
find . -type d -a ! -perm -0070 -exec chmod g+rwx \{\} \; )

0 comments on commit e374ac7

Please sign in to comment.