View Single Post
  #1   (View Single Post)  
Old 2nd November 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,050
Post HOWTO: Fluxbox from GIT

This script will rebuild your Fluxbox to newest version from GIT repository:

Code:
#! /bin/sh

# if you use WRKDIRPREFIX in /etc/make.conf
# then modify these to your settings
PORTSDIR=/usr/ports
WRKDIRPREFIX=${PORTSDIR}/obj

cd /tmp
git clone git://git.fluxbox.org/fluxbox.git \
 || ( echo "\ninstall /usr/ports/devel/git port\n" && exit )
cd fluxbox && ./autogen.sh
cd /usr/ports/x11-wm/fluxbox
make depends
make extract
if [ -z ${WRKDIRPREFIX} ]; then
  SOURCEDIR=$( ls /usr/ports/x11-wm/fluxbox/work )
  rm -rf /usr/ports/x11-wm/fluxbox/work/${SOURCEDIR}
  mv /tmp/fluxbox /usr/ports/x11-wm/fluxbox/work/${SOURCEDIR} \
  || ( echo "\ncheck WRKDIRPREFIX\n" && exit )
else
  SOURCEDIR=$( ls ${WRKDIRPREFIX}/usr/ports/x11-wm/fluxbox/work )
  rm -rf ${WRKDIRPREFIX}/usr/ports/x11-wm/fluxbox/work/${SOURCEDIR}
  mv /tmp/fluxbox ${WRKDIRPREFIX}/usr/ports/x11-wm/fluxbox/work/${SOURCEDIR} \
  || ( echo "\ncheck WRKDIRPREFIX\n" && exit )
fi
make build deinstall install clean
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote