summaryrefslogtreecommitdiffstats
path: root/redhat/gentarball.sh
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-10-29 23:32:41 +0200
committeralbator <albator@arcadia.vtf>2011-10-29 23:32:41 +0200
commit703986bfe4270bb901f594b92eebb265d04ad8f5 (patch)
treeca0361b20e1cf443754d4104663977e3f0a2077c /redhat/gentarball.sh
parent5a3c8c66709ef8eeb3708b0eb2732fa9e84d37d3 (diff)
downloadtde-packaging-703986bfe4270bb901f594b92eebb265d04ad8f5.tar.gz
tde-packaging-703986bfe4270bb901f594b92eebb265d04ad8f5.zip
Lot of updates for TDE 3.5.13 (RHEL 5, RHEL 6, Fedora 15)
Diffstat (limited to 'redhat/gentarball.sh')
-rwxr-xr-xredhat/gentarball.sh53
1 files changed, 41 insertions, 12 deletions
diff --git a/redhat/gentarball.sh b/redhat/gentarball.sh
index ab337ac6a..9715cffd0 100755
--- a/redhat/gentarball.sh
+++ b/redhat/gentarball.sh
@@ -27,33 +27,62 @@ select COMP in $( cut -f1 components.txt ) ; do
echo
echo "You currently have the following tarball(s): "
for i in ${ARCHIVEDIR}/${COMP##*/}*.tar.gz; do echo " ${i##*/}"; done
+ echo
fi
# Checks latest SVN revision
- SVNREV=$( LANG=C svn info svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface|sed -n "/^Revision: / s,.* \(.*\),\1,p" )
- ARCHIVENAME=${COMP##*/}-${VERSION}.${SVNREV}.tar.gz
+ unset ARCHIVENAME
+ case "${COMP##*/}" in
+ "libcaldav"|"libcarddav"|"qt3") ;;
+ *)
+ SVNREV=$( LANG=C svn info svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface|sed -n "/^Revision: / s,.* \(.*\),\1,p" )
+ ARCHIVENAME=${COMP##*/}-${VERSION}.${SVNREV}.tar.gz
- if [ -r ${ARCHIVEDIR}/${ARCHIVENAME} ]; then
- echo "You already have the latest revision (${SVNREV})";
- fi
+ if [ -r ${ARCHIVEDIR}/${ARCHIVENAME} ]; then
+ echo "You already have the latest revision (${SVNREV})";
+ else
+ echo "A new revision is available: ${SVNREV}"
+ fi
+ ;;
+ esac
echo
- echo "Press ENTER to download a new version, or CTRL+C to abort."
+ echo "Press ENTER to download the new tarball, or CTRL+C to abort."
read rep
TMPDIRTDE=$(mktemp -d)
pushd "${TMPDIRTDE}" >/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} ;;
+ "libcaldav")
+ echo "Downloading '${COMP}' ..."
+ ARCHIVENAME="libcaldav_0.6.5-2debian2.tar.gz"
+ wget --no-check-certificate "https://quickbuild.pearsoncomputing.net/~trinity/+archive/trinity-builddeps/+files/libcaldav_0.6.5-2debian2.tar.gz"
+ ;;
+ "libcarddav")
+ echo "Downloading '${COMP}' ..."
+ ARCHIVENAME="libcarddav_0.6.2-2debian2.tar.gz"
+ wget --no-check-certificate "https://quickbuild.pearsoncomputing.net/~trinity/+archive/trinity-builddeps/+files/libcarddav_0.6.2-2debian2.tar.gz"
+ ;;
+ "qt3")
+ echo "Extracting '${COMP}' from GIT ..."
+ git clone http://scm.trinitydesktop.org/scm/git/tde; mv tde/main/dependencies/qt3 .
+ ;;
+ *)
+ echo "Extracting '${COMP}' from SVN ..."
+ 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}
+ if [ ! -r "${ARCHIVENAME}" ]; then
+ popd >/dev/null
+ echo "Creating archive '${ARCHIVENAME}' ..."
+ tar cfz ${ARCHIVEDIR}/${ARCHIVENAME} ${COMP}
+ else
+ mv *.tar.gz ${ARCHIVEDIR}/
+ popd >/dev/null
+ fi
popd >/dev/null
echo "Cleaning temporary directory ..."
rm -rf "${TMPDIRTDE}"