Commit f7c18d29 authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'le-installpkgs/master'

Signed-off-by: 's avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents 8c00258b b244079b
#!/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 -a 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-installpkgs
Priority: important
Section: main
Version:
Architecture: i386
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Depends: python (>=2.6), python-apt, python-qt4
Description: Application to help LE users to install educational contents
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from leinstallpkgs import main
from PyQt4 import QtGui
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
mainwindow = main.MainWindow()
mainwindow.show()
sys.exit(app.exec_())
Metadata-Version: 1.1
Name: le-installpkgs
Version: 1.0
Summary: Install educational content on LE
Home-page: http://www.inf.ufpr.br/dgp06
Author: Diego Giovane Pasqualin
Author-email: dpasqualin@gmail.com
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Requires: apt
Requires: PyQt4
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'uifiles/progress.ui'
#
# Created: Wed Feb 23 12:31:58 2011
# by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_mainWindow(object):
def setupUi(self, mainWindow):
mainWindow.setObjectName("mainWindow")
mainWindow.resize(441, 260)
self.statusLabel = QtGui.QLabel(mainWindow)
self.statusLabel.setGeometry(QtCore.QRect(20, 20, 101, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.statusLabel.setFont(font)
self.statusLabel.setObjectName("statusLabel")
self.progressBar = QtGui.QProgressBar(mainWindow)
self.progressBar.setGeometry(QtCore.QRect(20, 40, 401, 23))
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName("progressBar")
self.progressText = QtGui.QPlainTextEdit(mainWindow)
self.progressText.setGeometry(QtCore.QRect(20, 80, 401, 131))
self.progressText.setUndoRedoEnabled(False)
self.progressText.setReadOnly(True)
self.progressText.setObjectName("progressText")
self.pkgInstallingLabel = QtGui.QLabel(mainWindow)
self.pkgInstallingLabel.setGeometry(QtCore.QRect(120, 20, 301, 17))
self.pkgInstallingLabel.setText("")
self.pkgInstallingLabel.setObjectName("pkgInstallingLabel")
self.buttonOK = QtGui.QPushButton(mainWindow)
self.buttonOK.setGeometry(QtCore.QRect(330, 220, 91, 27))
self.buttonOK.setObjectName("buttonOK")
self.buttonCancel = QtGui.QPushButton(mainWindow)
self.buttonCancel.setGeometry(QtCore.QRect(220, 220, 98, 27))
self.buttonCancel.setObjectName("buttonCancel")
self.retranslateUi(mainWindow)
QtCore.QObject.connect(self.buttonOK, QtCore.SIGNAL("clicked()"), mainWindow.accept)
QtCore.QMetaObject.connectSlotsByName(mainWindow)
def retranslateUi(self, mainWindow):
mainWindow.setWindowTitle(QtGui.QApplication.translate("mainWindow", "Instalação Pacotes Educacionais", None, QtGui.QApplication.UnicodeUTF8))
self.statusLabel.setText(QtGui.QApplication.translate("mainWindow", "Instalando...", None, QtGui.QApplication.UnicodeUTF8))
self.buttonOK.setText(QtGui.QApplication.translate("mainWindow", "OK", None, QtGui.QApplication.UnicodeUTF8))
self.buttonCancel.setText(QtGui.QApplication.translate("mainWindow", "Cancelar", None, QtGui.QApplication.UnicodeUTF8))
MAIN=../interface.py
PROG=../progressUI.py
UIFILES=.
all: interface progress
interface: $(UIFILES)/interface.ui
pyuic4 $^ -o $(MAIN)
progress: $(UIFILES)/progress.ui
pyuic4 $^ -o $(PROG)
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>mainWindow</class>
<widget class="QDialog" name="mainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>441</width>
<height>260</height>
</rect>
</property>
<property name="windowTitle">
<string>Instalação Pacotes Educacionais</string>
</property>
<widget class="QLabel" name="statusLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Instalando...</string>
</property>
</widget>
<widget class="QProgressBar" name="progressBar">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>401</width>
<height>23</height>
</rect>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QPlainTextEdit" name="progressText">
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>401</width>
<height>131</height>
</rect>
</property>
<property name="undoRedoEnabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="pkgInstallingLabel">
<property name="geometry">
<rect>
<x>120</x>
<y>20</y>
<width>301</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="buttonOK">
<property name="geometry">
<rect>
<x>330</x>
<y>220</y>
<width>91</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>OK</string>
</property>
</widget>
<widget class="QPushButton" name="buttonCancel">
<property name="geometry">
<rect>
<x>220</x>
<y>220</y>
<width>98</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Cancelar</string>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonOK</sender>
<signal>clicked()</signal>
<receiver>mainWindow</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>375</x>
<y>233</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
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