[Kde-cygwin-cvs] CVS: kde-1.1.2/dist pack_kde,1.1,1.2
Status: Inactive
Brought to you by:
habacker
From: Ralf H. <hab...@us...> - 2001-06-12 11:41:03
|
Update of /cvsroot/kde-cygwin/kde-1.1.2/dist In directory usw-pr-cvs1:/tmp/cvs-serv2743 Modified Files: pack_kde Log Message: changed some dirs in build dir Index: pack_kde =================================================================== RCS file: /cvsroot/kde-cygwin/kde-1.1.2/dist/pack_kde,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** pack_kde 2001/06/06 12:26:02 1.1 --- pack_kde 2001/06/12 11:40:59 1.2 *************** *** 1,14 **** #!/bin/sh ! BASE=/usr/local/kde1 VERSION=-1.1.2 ! SRCBASE=$HOME/src/kde/kde$VERSION SRCDIR=$SRCBASE/kde DATE=`date +%Y%m%d` - DISTDIR=$HOME/dist - PUBLISHDIR=//optiplexgxproii/anwendungen/win/cygwin/kde-1.1.2-20010515 ! PACKAGE="support libs base games utils misc" --- 1,40 ---- #!/bin/sh + # + # $Id$ + # + # packing kde + # + # This script prepares a kde-1.1.2 distribution for cygwin + # + # Preparing a distribution goes through several steps. + # 1. compile the packages of the basic kde (support/libs/base/games/utils) + # This will normally be done by entereing the relating dirs and call make + # + # 2. install the distribution bins/libs in the wished packages + # For cygwin I choosed the + # ! #---------------------------------------------------------------------- ! BUILDROOT=/usr/local/build ! INSTPATH=$BUILDROOT/usr/local ! INSTREL=usr/local/kde1 ! INSTBASE=$BUILDROOT/$INSTREL ! DEVELBASE=$BUILDROOT/kde1devel ! VERSION=-1.1.2 ! SRCBASE=$HOME/tmp/kde/kde$VERSION ! PUBLISHDIR=//optiplexgxproii/anwendungen/win/cygwin/kde-1.1.2 ! ! # dir for imcoming downloads ! DOWNLOAD=/download ! # ! # ! DISTDIR=$HOME/dist ! #---------------------------------------------------------------------- SRCDIR=$SRCBASE/kde DATE=`date +%Y%m%d` ! PACKAGE="support libs base games utils misc devel ld X11 qt1" *************** *** 20,24 **** echo " publish - move bin package to server" echo " rebuild - rebuild CYGWIN-Installer setup database" ! echo " devel - create development package" echo echo "part = support | libs | base | games | utils | misc | <blank>" --- 46,50 ---- echo " publish - move bin package to server" echo " rebuild - rebuild CYGWIN-Installer setup database" ! echo " test - test a package (base, games, utils)" echo echo "part = support | libs | base | games | utils | misc | <blank>" *************** *** 36,104 **** if test $MODE = "install"; then - for PART in $X; do case $PART in support | libs | base | games | utils) - ORGDIR=$BASE$PART ! rm -r $ORGDIR ! rm -r $BASE ! mkdir $ORGDIR ! ln -fs $ORGDIR $BASE ! # base überprüft beim Installieren verschiedene Dateien ! if test "x$PART" = "xbase"; then ! ln -fs $BASE\x/include $BASE\/include ! # wegen kappfinder ! ln -fs $BASE\x /usr/local/kde fi ! cd $SRCDIR/kde$PART$VERSION ! make install ! install -d $BASE/bin ! cd $ORGDIR; mv lib/*.dll bin/ ! ! if test "x$PART" = "xbase"; then ! rm $BASE\/include ! # wegen kappfinder ! rm /usr/local/kde ! fi if test "x$PART" = "xsupport"; then ! cp /bin/cygz.dll $BASE/bin/ ! cp /bin/cygpng2.dll $BASE/bin/ ! cp /bin/cygjpeg6b.dll $BASE/bin/ ! cp /bin/cygtiff3.dll $BASE/bin/ fi ! ! find "$ORGDIR/bin" \( -name '*.exe' -or -name '*.dll' -or -name '*.kss' \) -print -exec sh -c "ls -l {}; strip -s {}; ls -l {}" \; ;; misc) # misc dateien installieren ;; # all other packages *) ! ! ORGDIR=$BASE$PART ! rm -r $ORGDIR ! rm -r $BASE ! mkdir $ORGDIR ! ln -fs $ORGDIR $BASE ! ! # create symbolic links ! ln -fs $BASE\x/include $BASE\/include ! ln -fs $BASE\x/lib $BASE\/lib ! cd $SRCBASE/$PART-$APPVERSION ! make install # remove symbol links ! rm $BASE\/include ! rm $BASE\/lib ;; esac --- 62,182 ---- if test $MODE = "install"; then for PART in $X; do + BUILDBASE=$BUILDROOT/kde1$PART + # set precondition case $PART in support | libs | base | games | utils) ! rm -r $BUILDBASE ! install -d $BUILDBASE ! # do special pre install actions ! ! # all .exe creating packets (base,games, utils) need kdelibs for compiling ! # to enable compiling before installing, creates links ! if test "x$PART" != "xlibs" && test "x$PART" != "xsupport" ; then ! ln -fs $DEVELBASE/include $BUILDBASE\/include ! ln -fs $DEVELBASE/kde1devel/lib $BUILDBASE\/lib fi ! # install package ! cd $SRCDIR$PART ! make -e prefix=$BUILDBASE install-strip ! ! # do special post install actions ! if test "x$PART" = "xbase"; then ! rm $BUILDBASE/bin/konsole*.exe ! X=$PWD ! cd $BUILDBASE/bin; ! ln -s kvt.exe konsole; ! cd $X ! rm $BUILDBASE/bin/kab*.exe ! fi if test "x$PART" = "xsupport"; then ! # installing depending dlls ! cp /bin/cygz.dll $BUILDBASE/bin/ ! cp /bin/cygpng2.dll $BUILDBASE/bin/ ! cp /bin/cygjpeg6b.dll $BUILDBASE/bin/ ! cp /bin/cygtiff3.dll $BUILDBASE/bin/ ! cp /bin/cygncurses5.dll $BUILDBASE/bin/ ! fi ! ! # create devel package ! if test "x$PART" = "xsupport" || test "x$PART" = "xlibs"; then ! install -d $DEVELBASE ! mv $BUILDBASE/include/* $DEVELBASE/include ! mv $BUILDBASE/lib/* $DEVELBASE/lib ! rm -r $BUILDBASE/include ! rm -r $BUILDBASE/lib ! fi ! ! # mediatool.a isn't a valid libname for ld ! if test "x$PART" = "xsupport" ; then ! (cd $DEVELBASE/lib; ln -s mediatool.a libmediatool.a) fi ! ! # delete tempory links for compile on install ! if test "x$PART" != "xlibs" && test "x$PART" != "xsupport" ; then ! rm $BUILDBASE\/include ! rm $BUILDBASE\/lib ! fi ! ! find "$BUILDBASE/bin" \( -name '*.exe' -or -name '*.dll' -or -name '*.kss' \) -print -exec sh -c "ls -l {}; strip -s {}; ls -l {}" \; ;; misc) # misc dateien installieren + X=$PWD + MYHOME=home/administrator + rm -r $BUILDBASE + install -d $BUILDBASE/$MYHOME + cd /home/habacker + cp .xinitrc .xserverrc $BUILDBASE/$MYHOME + cd $X ;; + cygipc) + X=$PWD + cd /home/habacker/src/cygipc + make -e prefix="$BUILDROOT/cygipc/usr" install + cd $X + ;; + + # install special ld build + ld) + echo "not implemented yet" + # LDBUILD=$BUILDROOT/usr/i868-pc-cygwin-ai + # X=$PWD + # cd /home/habacker/src/cygipc + # make -e prefix="/usr/local/cygipc/usr" install + # cd $X + ;; + + X11) + echo "nothing to install" + ;; + + qt1) + echo "nothing to install" + ;; # all other packages *) ! rm -r $BUILDBASE ! install -d $BUILDBASE ! # all .exe creating packets (base,games, utils) need kdelibs for compiling ! # to enable compiling before installing, creates links ! ln -fs $DEVELBASE/include $BUILDBASE\/include ! ln -fs $DEVELBASE/kde1devel/lib $BUILDBASE\/lib ! cd $SRCBASE/$PART-$VERSION ! make -e prefix=$BUILDBASE install-strip # remove symbol links ! rm $BUILDBASE\/include ! rm $BUILDBASE\/lib ;; esac *************** *** 113,145 **** for PART in $X; do case $PART in ! support | libs | base | games | utils) ! ORGDIR=$BASE$PART ! rm -r $BASE ! ln -fs $ORGDIR $BASE ! ! TARDIR=$BASE/bin ! if test -d $BASE/share; then ! TARDIR="$TARDIR $BASE/share" fi ! tar -czvf kde$PART$VERSION-$DATE.tar.gz $TARDIR ! ;; misc) - - ORGDIR=$BASE$PART # xserver config files ! rm -r $BASE ! ln -fs $ORGDIR $BASE ! tar -czvf kde$PART$VERSION-$DATE.tar.gz $HOME/.xinitrc $HOME/.xserverrc /usr/X11R6/lib/X11/rgb.txt $BASE/bin ;; *) ! ORGDIR=$BASE$PART ! rm -r $BASE ! ln -fs $ORGDIR $BASE ! tar -czvf $PART-$APPVERSION-$DATE.tar.gz $BASE/bin $BASE/share ;; esac --- 191,268 ---- for PART in $X; do + BUILDBASE=$BUILDROOT/kde1$PART + + case $PART in ! support | libs | base | games | utils ) ! rm -r $INSTBASE ! install -d $INSTPATH ! ln -fs $BUILDBASE $INSTBASE ! TARDIR=$INSTREL/bin ! if test -d $INSTBASE/share; then ! TARDIR="$TARDIR $INSTREL/share" fi ! X=$PWD ! cd $BUILDROOT ! tar -cjvf $X/kde$PART$VERSION-$DATE.tar.bz2 $TARDIR ! rm $INSTBASE ! cd $X ! ;; misc) # xserver config files ! MYHOME=home/administrator ! X=$PWD ! cd $BUILDBASE ! tar -cjvf $X/kde$PART$VERSION-$DATE.tar.bz2 $MYHOME ! cd $X ;; + cygipc) + X=$PWD + cd /usr/local/build/cygipc + tar -cjvf $X/cygipc-1.09-2-bin.tar.bz2 usr + cd $X + cp $DOWNLOAD/cygipc*-src.tar.gz $X + ;; + + qt1) + X=$PWD + cd / + tar -cjvf $X/qt-1.45-$DATE-bin.tar.bz2 usr/local/lib/qt1/bin usr/local/lib/qt1/lib + cd $X + ;; + + ld) + echo "not implemented yet" + ;; + + X11) + X=$PWD + XNAME=xfree-4.1.0-20010603 + cd $BUILDROOT/xfree + tar -cjvf $X/$XNAME-bin.tar.bz2 usr/X11R6/bin usr/X11R6/lib/fonts usr/X11R6/lib/X11 + tar -cjvf $X/$XNAME-devel.tar.bz2 /usr/X11R6/lib /usr/X11R6/include + cd $X + ;; + + devel) + rm -r $INSTBASE + ln -fs $BUILDBASE $INSTBASE + X=$PWD + cd $BUILDROOT + tar -hcjvf $X/kde$PART$VERSION-$DATE.tar.bz2 $INSTREL + cd $X + ;; + *) ! rm -r $INSTBASE ! ln -fs $BUILDBASE $INSTBASE ! X=$PWD ! cd $BUILDROOT ! tar -hcjvf $X/kde$PART$VERSION-$DATE.tar.bz2 $INSTREL ! cd $X ;; esac *************** *** 151,155 **** for PART in $X; do ! cp kde$PART$VERSION-$DATE.tar.gz $PUBLISHDIR/ done cinstall_import $PUBLISHDIR $PUBLISHDIR/setup.ini --- 274,290 ---- for PART in $X; do ! ! case $PART in ! qt | X11 | ld) ! # this should check if a archive is available ! # rm $PUBLISHDIR/$PART* ! mv $PART$* $PUBLISHDIR/ ! ;; ! *) ! # this should check if a archive is available ! # rm $PUBLISHDIR/kde$PART$VERSION* ! mv kde$PART$VERSION-$DATE.tar.* $PUBLISHDIR/ ! ;; ! esac done cinstall_import $PUBLISHDIR $PUBLISHDIR/setup.ini *************** *** 160,176 **** fi ! if test $MODE = "devel"; then ! tar -cvf kde$MODE$VERSION-$DATE.tar ! for i in $PACKAGE; do ! ORGDIR=$BASE$i rm -r $BASE ! ln -fs $ORGDIR $BASE ! FILES="$BASE/lib $BASE/include" ! tar -rvf kde$MODE$VERSION-$DATE.tar $FILES ! done ! gzip kde$MODE$VERSION-$DATE.tar ! fi --- 295,317 ---- fi + # import real cygwin distribution + if test $MODE = "import"; then + /home/habacker/src/cinstall-addon/import_cygwin.sh /install/cygwin/setup.ini ../setup.ini + /home/habacker/src/cinstall-addon/import.sh . ../setup.ini noheader + fi + if test $MODE = "rebuildl"; then + cinstall_import . setup.ini + fi ! if test $MODE = "test"; then rm -r $BASE ! install -d $BASE ! # install libs ! cp -r $BASE\libs/bin $BASE/bin ! ln -s $BASE\libs/share $BASE/share ! # install part ! cp -r $BASE$PART/* $BASE ! fi |