Commit 13d18062 authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'le-edubar-fixed-position/master'

Signed-off-by: 's avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents 1c1b57a4 915251dd
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".git" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
Package: le-edubar-fixed-position
Priority: important
Section: main
Version:
Architecture: i386
Depends: le-edubar
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: Ensures that le-edubar will always open in the correct position
on the screen.
#!/bin/bash
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-edubar-fixed-position
#
# le-edubar-fixed-position 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
PKG_AVAILABLE=$(apt-cache search '^mec-' | wc -l);
PKG_INSTALLED=$(dpkg --get-selections | grep '^mec-' | wc -l);
SCREEN_WIDTH=$(xrandr | grep '*' | awk '{print $1}' | cut -d"x" -f1)
if (( SCREEN_WIDTH < 1024 )); then
ICON_SIZE=96
else
ICON_SIZE=128
fi
if ((PKG_AVAILABLE == PKG_INSTALLED)); then
EDUBAR_WIDTH=$((ICON_SIZE * 5 + 10));
else
EDUBAR_WIDTH=$((ICON_SIZE * 6 + 10));
fi
EDUBAR_HEIGHT=$ICON_SIZE;
CONFIG="$HOME/.kde/share/config/plasma-desktop-appletsrc"
POS_X=$(((SCREEN_WIDTH/2) - (EDUBAR_WIDTH/2)));
POS_Y=0;
PLUGIN=$(grep "^plugin=edubar$" $CONFIG)
if [ -z "$PLUGIN" ]; then
ID=$(egrep "^\[Containments\]\[[0-9]*\]\[Applets\]\[[0-9]*\]$" $CONFIG | \
cut -d "[" -f5 | sed 's/\]//g' | sort -g | tail -n1)
ID=$((ID+1))
kwriteconfig --file $CONFIG --group Containments --group 1 --group Applets \
--group $ID \
--key geometry "$POS_X,$POS_Y,$EDUBAR_WIDTH,$EDUBAR_HEIGHT"
kwriteconfig --file $CONFIG --group Containments --group 1 --group Applets \
--group $ID --key immutability "1"
kwriteconfig --file $CONFIG --group Containments --group 1 --group Applets \
--group $ID --key plugin "edubar"
kwriteconfig --file $CONFIG --group Containments --group 1 --group Applets \
--group $ID --key zvalue "0"
fi
chown -R --reference="$HOME" "$HOME/.kde"
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Danilo Kiyoshi Simizu Yorinori
Diego Giovane Pasqualin
Eduardo Todt
Erik Alexandre Pucci
Felipe Cys Laskoski
Guilherme Zasyeki Machado
Josiney de Souza
Juliana Bueno
Klismann Smoger Mottin
Laura Sanchez Garcia
Luis Carlos Erpen de Bona
Marcela Saragioto
Marcos Castilho
Pedro Eugenio Rocha
Renan Franca De Miranda
Ricardo Tavares De Oliveira
Rubens Massayuki Suguimoto
Thiago Henrique Dos Santos Picharski
Tiago Rodrigo Kepe
Victor Tarabola Cortiano
Vinicius Kwiecien Ruoso
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment