close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | # |
|---|
| 3 | # Script: opengnsys_compress.sh |
|---|
| 4 | # Descripción: Programa para descargar y generar un fichero comprimido con los |
|---|
| 5 | # datos de la última revisión de código del Proyecto OpenGnSys. |
|---|
| 6 | # Salida: Datos del fichero comprimido generado. |
|---|
| 7 | # Versión: 1.0 - Incluido en OpenGnSys 1.0.1 |
|---|
| 8 | # Autor: Ramón Gómez, Universidad de Sevilla |
|---|
| 9 | # Fecha: 10/05/2011 |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | # Variables |
|---|
| 13 | SVNURL="http://www.opengnsys.es/svn/trunk/" |
|---|
| 14 | SVNREV=$(LANG=C svn info $SVNURL | awk '/Last Changed Rev:/ {print "r"$4}') |
|---|
| 15 | |
|---|
| 16 | # Descargar repositorio SVN |
|---|
| 17 | cd /tmp |
|---|
| 18 | rm -fr opengnsys |
|---|
| 19 | svn export $SVNURL opengnsys || exit 1 |
|---|
| 20 | # Parchear datos de revisión del código. |
|---|
| 21 | perl -pi -e "s/$/ $SVNREV/" opengnsys/doc/VERSION.txt |
|---|
| 22 | # Generar fichero comprimido. |
|---|
| 23 | VERSION=$(awk '{print $2"-"$3}' opengnsys/doc/VERSION.txt) |
|---|
| 24 | tar cvzf opengnsys-$VERSION.tar.gz opengnsys |
|---|
| 25 | rm -fr opengnsys |
|---|
| 26 | ls -lh $(readlink -e opengnsys-$VERSION.tar.gz) |
|---|
| 27 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.