gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gcmd-dev] silly script to 'download & compile'


From: Micha
Subject: [gcmd-dev] silly script to 'download & compile'
Date: Tue, 28 Mar 2006 06:04:29 +0200
User-agent: Alpenglühn 7.2

2 little scrippets to automate things a little...

_________ launch wrapper script ____________

I compile as user without 'make install', instead the wrapper
gnome-commander/src/gnome-commander gets executed.
It turned out there has to be a 'cd' to that dir first, for
some relative inbuilt pixmap search path, 
<WARNING: Couldn't load installed file type pixmap, trying to load from 
source-dir>
Solved by YAW script with a parameter to choose between
cvs, or release (1.1.7) version. 

cat /usr/local/bin/gnome-commander-version

#!/bin/sh


# Commandline

case $1 in

   release) dir=/opt/gnome-commander/src; shift;;

   pre|cvs) dir=/home/WERKS/CVS/gc/src; shift;;

         *) echo "Need choice parameter."; exit 0;;

esac

options="--disable-sound "$@  


# MAIN

cd $dir

( exec $dir/gnome-commander $options ) &


___________ download+compile script _______________

to be placed one level above the local cvs dir
(e.g. /opt/getnew if you download cvs to /opt/gnome-commander).
It can be sourced ( cd /opt/; . getnew) so chmod 644 is ok.
Features: 
Backup old to gnome-commander.bak + logfile
(Do i really need both autogen and configure ?)

#!/bin/sh
#
# CONFIG
target=gnome-commander
log=build.log
echo "" > $log
#
# PREPARE
echo "========= Backup and removing old repository:"
rm -rf $target".bak"
mv $target $target".bak"
(
#
# LOAD
echo "======== Downloading new cvs version:"
cvs -d :pserver:address@hidden:/cvs/gnome -z3 co $target

#
# MAKE
cd $target
echo "========== autogen ========="
./autogen.sh
echo "========== configure ========="
./configure
echo "========== make ========="
make

#
# FINISH
echo "====== getnew: Done. ======"
echo

) 2>&1 | tee -a $log






reply via email to

[Prev in Thread] Current Thread [Next in Thread]