diff options
author | albator <albator@arcadia.vtf> | 2011-09-11 17:32:30 +0200 |
---|---|---|
committer | albator <albator@arcadia.vtf> | 2011-09-11 17:32:30 +0200 |
commit | 33d2f707818e7b3191df081c2e485789d0d7c331 (patch) | |
tree | 979e90bd0a7a8f576e90bd3cc9ef0425235cc253 /redhat/gentarball.sh | |
parent | b683e306b9437c92b554f78af83917ca47ce2979 (diff) | |
download | tde-packaging-33d2f707818e7b3191df081c2e485789d0d7c331.tar.gz tde-packaging-33d2f707818e7b3191df081c2e485789d0d7c331.zip |
Update script to generate tarballs
Diffstat (limited to 'redhat/gentarball.sh')
-rwxr-xr-x | redhat/gentarball.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/redhat/gentarball.sh b/redhat/gentarball.sh index 9fd57625f..ab337ac6a 100755 --- a/redhat/gentarball.sh +++ b/redhat/gentarball.sh @@ -21,17 +21,24 @@ select COMP in $( cut -f1 components.txt ) ; do VERSION=$( awk '{ if ($1 == "'${COMP}'") { print $2; } }' components.txt ) if [ -z "${VERSION}" ]; then VERSION=${DEFAULT_VERSION}; fi - ARCHIVENAME=${COMP##*/}-${VERSION}.$(date +%Y%m%d).tar.gz # List existing tarballs - if [ -e ${ARCHIVEDIR}/${COMP##*/}*.tar.gz ]; then + if ls ${ARCHIVEDIR}/${COMP##*/}*.tar.gz >/dev/null 2>&1; then echo echo "You currently have the following tarball(s): " for i in ${ARCHIVEDIR}/${COMP##*/}*.tar.gz; do echo " ${i##*/}"; done 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 + + if [ -r ${ARCHIVEDIR}/${ARCHIVENAME} ]; then + echo "You already have the latest revision (${SVNREV})"; + fi + echo - echo "Press ENTER to download a new version '${ARCHIVENAME}', or CTRL+C to abort." + echo "Press ENTER to download a new version, or CTRL+C to abort." read rep TMPDIRTDE=$(mktemp -d) @@ -41,9 +48,10 @@ select COMP in $( cut -f1 components.txt ) ; do 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};; + *) 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 |