All pastes #770887 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-12 17:47 UTC
rendered paste body
#!/bin/sh

if [ $# -ne 2 ]; then
        echo "Need 2 arguments"
        exit -1
fi

SVN_VERSION=$1
FRG_VERSION=$2

FRG_PACKAGES=/home/freerock/frg-${FRG_VERSION}
GSB_ROOT=/home/freerock/gsb/${SVN_VERSION}

if [ ! -d "${GSB_ROOT}/.svn" ]; then
        echo "SVN Dir does not exist"
        exit -1
fi

if [ ! -d ${FRG_PACKAGES} ]; then
        echo "FRG Package Dir does not exist"
        exit -1
fi

removepkg /var/log/packages/*frg

(
  cd ${GSB_ROOT}/bin/gsb_update
  ./gsb_update --dl --edit --build=frg
)

for i in platform desktop_reqs desktop bindings themes
do
        upgradepkg --install-new ${FRG_PACKAGES}/frgnome/${i}/*.tgz
        upgradepkg --install-new ${FRG_PACKAGES}/extras/alternatives/${i}/*.tgz
        (
          cd $GSB_ROOT/src/gnome/${i}
          ./gnome.${i}.SlackBuild
        )
done

for i in libs applets_extensions gnome-apps apps
do
        upgradepkg --install-new ${FRG_PACKAGES}/extras/${i}/*.tgz
        upgradepkg --install-new ${FRG_PACKAGES}/extras/alternatives/${i}/*.tgz
        (
          cd $GSB_ROOT/src/extras/${i}
          ./gnome.extras.${i}.SlackBuild
        )
done

for i in office mono ruby
do
        upgradepkg --install-new ${FRG_PACKAGES}/extras/${i}/*.tgz
        upgradepkg --install-new ${FRG_PACKAGES}/extras/alternatives/${i}/*.tgz
        (
          cd $GSB_ROOT/src/${i}
          ./gnome.${i}.SlackBuild
        )
done