From 016dd39c2ae7c15ce5b16c992fa1a2dd60d755ca Mon Sep 17 00:00:00 2001 From: albator Date: Sun, 4 Sep 2011 17:04:12 +0200 Subject: Initial production script for RHEL Use 'gentarball.sh' to generate tarballs from SVN, then 'genrpm.sh' to build RPM. --- redhat/components.txt | 7 +++++ redhat/genrpm.sh | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++ redhat/gentarball.sh | 60 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 redhat/components.txt create mode 100755 redhat/genrpm.sh create mode 100755 redhat/gentarball.sh (limited to 'redhat') diff --git a/redhat/components.txt b/redhat/components.txt new file mode 100644 index 000000000..9a4b4836d --- /dev/null +++ b/redhat/components.txt @@ -0,0 +1,7 @@ +dependencies/qt3 +dependencies/tqtinterface +dependencies/dbus-tqt +dependencies/arts +kdelibs +kdebase +kdebindings diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh new file mode 100755 index 000000000..96d6ce7de --- /dev/null +++ b/redhat/genrpm.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +cd "$( dirname "$0" )" + +clear +cat </dev/null + mkdir -p "${TMPDIRTDE}/${COMP}" + pushd "${COMP}/.." >/dev/null + echo "Extracting '${COMP}' from SVN ..." + case "${COMP##*/}" in + "qt3") git clone http://scm.trinitydesktop.org/scm/git/tde; mv tde/main/dependencies/qt3 . ;; + *) svn export --force --quiet svn://anonsvn.kde.org/home/kde/branches/trinity/${COMP};; + esac + popd >/dev/null + echo "Creating archive '${ARCHIVENAME}' ..." + tar cfz ${ARCHIVEDIR}/${ARCHIVENAME} ${COMP} + popd >/dev/null + echo "Cleaning temporary directory ..." + rm -rf "${TMPDIRTDE}" + cat <