File modified: bin/bgn.sh bin/setenv.sh bin/start.sh
Change329 at Tue Jul 27 19:36:23 2010 +0200 by Ivan Kanis <ivan@tao>
diff -r b00865c2efe7 -r 4cfc48086d40 bin/start.sh --- a/bin/start.sh Mon Jul 26 22:24:15 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -#!/bin/sh - -hd_name="Iomega_HDD" -uname=`uname` -if test "X${uname}" = "XDarwin" -then - portable_dir="/Volumes/${hd_name}" -else - portable_dir="/media/${hd_name}" -fi - -check () { - if test $? -ne 0 - then - printf "$1\n" - exit 1 - fi -} - -ALSA_FILE="${HOME}/local/alsa.cnf" -if test -f "${ALSA_FILE}" -then - sudo alsactl -f "${ALSA_FILE}" restore -fi - -if test "X${uname}" = "XDarwin" -then - sudo umount "${portable_dir}" - hd_device=`diskutil list | grep "${hd_name}" | awk '{printf $6}'` - uid=`id -u` - gid=`id -g` - sudo ntfs-3g -o "uid=${uid},gid=${gid}" \ -"/dev/${hd_device}" "${portable_dir}" -else - if test ! -d "${portable_dir}/keep" - then - sudo mount "${portable_dir}" - check "error mounting ${portable_dir}" - fi -fi -cd ${HOME}/hg -hg pull ${portable_dir}/keep/hg -hg update -check "error pulling mercurial" - -# make is busted on the mac... -if test "X${uname}" != "XDarwin" -then - make - check "compilation error" -fi - -if test "X`hostname`" = "Xtao" -then - ssh-add - check "password error with private key" - updateweb.sh & - nice rsync -a ~/lucia /media/Iomega_HDD & -fi -wrapper.py emacs & -firefox > /dev/null 2>&1 & - -nice rsync -a ${portable_dir}/keep ~/local & - -# Local Variables: -# compile-command: "sh start.sh" -# End: - -# Copyright (C) 2010 Ivan Kanis -# Author: Ivan Kanis -# -# -# This program is free software ; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation ; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY ; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program ; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA