5 for lsopt in -B --color=auto -FN; do
6 ls $lsopt > /dev/null 2>&1 && LS_OPTIONS="$LS_OPTIONS $lsopt"
9 if [ `uname -s` = "FreeBSD" ] && alias | grep -q "ls="; then
14 for grepopt in --colour=auto; do
15 grep -q $grepopt . /etc/passwd && GREP_OPTIONS="$GREP_OPTIONS $grepopt"
19 while [ "$#" -ge 1 ]; do
24 if [ "$D" = "$P" ]; then
30 if [ -x "$D/$1" ]; then
41 NOD="$HOME/Desktop/NoD.txt"
42 if ! [ -f "$NOD" ]; then
43 echo "No ~/Desktop/NoD.txt"
46 if ! grep -q $(date -I) ${NOD}; then
47 printf "\n%s:\n\n- Mail, IRC, etc\n" $(date -I) >> ${NOD}
49 printf "- %s" "$@">> ${NOD}
57 date -d "$(TZ=$TZMEETING date --rfc-822 -d "$TIME")"
62 if [ ! -d "$HOME/blog" ]; then
63 echo "You don't have your blog checked out here. Can't blog."
73 SUBJ="$(echo $2 | tr ' ' '_')"
78 FILE=$(date +"%Y-%m-%d-%H-%M")_$SUBJ.txt
81 if [ "$OFFLINE" != "1" ]; then
83 svn ci -m"Initial commit" $FILE
90 A2ROOT=http://svn.clearairturbulence.org/apache2/trunk
91 if [ "$1" = "release" ]; then
94 DBCMD='dpkg-buildpackage -rfakeroot -uc -us';
97 [ ! -d /tmp/debian ] && mkdir -p /tmp/debian
98 svn cat "$A2ROOT/debian/changelog" > /tmp/debian/changelog;
99 cd /tmp && VER=$(dpkg-parsechangelog|grep urgency|sed -e 's/.*(\(.*\)-.*).*/\1/');
101 rm -r apache2-$VER apache2_$VER*diff.gz apache2_$VER*-*;
102 svn export "$A2ROOT" apache2-$VER;
103 if [ ! -f apache2_$VER.orig.tar.gz ]; then
104 cd apache2-$VER && fakeroot debian/rules clean && cd ..;
105 mv apache2-$VER/debian ./debian-$VER;
106 tar czf apache2_$VER.orig.tar.gz apache2-$VER;
107 mv debian-$VER apache2-$VER/debian;
109 cd apache2-$VER && $DBCMD && cd ..;
113 if [ -f /etc/debian_version ]; then
120 PATH=$(echo "$PATH" | sed -e "s,:*$1:,:,g" -e "s,::,:,g")
138 echo "lang=nor&quest=$@" | \
139 xargs -0 -i wget -q -O - --post-data {} http://www.idi.ntnu.no/~tagore/cgi-bin/busstuc/busq.cgi| \
140 html2text -width 1000| \
141 sed '/[[:alpha:]]/p;d'
145 appendpathifdir /store/gnu/bin
146 appendpathifdir /store/bin
148 setpathifdir /store/gnu/bin
149 setpathifdir /store/bin
151 setpathifdir /usr/local/bin
152 setpathifdir $HOME/usr/bin
153 setpathifdir $HOME/bin
154 appendpathifdir /usr/sbin
155 appendpathifdir /sbin
157 if [ `id -u` = "0" ]; then
159 setpathifdir /usr/sbin
160 setpathifdir /usr/local/sbin
161 setpathifdir /local/sbin
167 WWW_HOME=http://localhost/~tfheen/services.html
168 test -x "$HOME/bin/lesspipe.sh" && LESSOPEN="|$HOME/bin/lesspipe.sh '%s'"
169 test -x "$HOME/bin/lesspipe" && LESSOPEN="|$HOME/bin/lesspipe '%s'"
173 #MAIL=/var/spool/mail/tfheen
174 DEBEMAIL=tfheen@debian.org
175 DEBFULLNAME="Tollef Fog Heen"
176 CVSEDITOR="emacs -nw"
177 SVN_EDITOR="emacs -nw"
178 XTERM=$(findcommand gnome-terminal pterm Eterm xterm)
180 GNUSTEP_USER_ROOT="$HOME/.GNUstep"
181 OOO_DISABLE_RECOVERY=True
185 if [ -f /etc/debian_chroot ]; then
186 CHROOT="($(cat /etc/debian_chroot | tr -d '\n'))"
189 if test `uname -s` = "Linux" && test `uname -m` = i686; then
195 HOSTNAME=`/bin/hostname`
196 DOMAINNAME=`/bin/hostname | cut -d. -f 2-`
199 HOSTNAME=`/bin/hostname -f`
200 DOMAINNAME=`/bin/hostname -f | cut -d. -f 2-`
204 if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
205 if findcommand locale >/dev/null; then
206 if locale -a | grep -q '^nb_NO.utf8$' ; then
208 elif locale -a | grep -q '^en_US.utf8$'; then
214 if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
215 if findcommand localedef >/dev/null; then
216 localedef --list-archive > /dev/null 2>&1
217 if test "$?" = "0"; then
218 if localedef --list-archive | grep -q '^no_NO$' ; then
220 elif localedef --list-archive | grep -q '^en_US$'; then
227 case "$DOMAINNAME" in
230 EMAIL=tfheen@samfundet.no
239 export WINDOW_MANAGER=$(findcommand openbox metacity twm)
241 export LS_OPTIONS CVSROOT EDITOR TZ WWW_HOME LESSOPEN LESS RSYNC_RSH
242 export CVS_RSH LANG DEBEMAIL CVSEDITOR ldlib HOSTNAME DOMAINNAME PATH
243 export EMAIL XTERM SVN_EDITOR GNUSTEP_USER_ROOT GREP_OPTIONS
244 export OOO_DISABLE_RECOVERY GTK_IM_MODULE
246 if [ -f "$HOME/.gnupg/gpg-agent-info-$HOSTNAME" ]; then
247 . "$HOME/.gnupg/gpg-agent-info-$HOSTNAME"
248 elif [ -f "$HOME/.gnupg/gpg-agent-info-$(hostname)" ]; then
249 . "$HOME/.gnupg/gpg-agent-info-$(hostname)"