From 56dd0c7d459fbd5325667a7e65557ce7f8a6af80 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 20 Jun 2013 10:36:47 +0200 Subject: The script for creating source packages no longer creates doc package Reflect that in the name Change-Id: I8c7f81b0ff3b24e63401c6bbb90c9ad622c6ed0d Reviewed-by: Eike Ziller --- scripts/createSourcePackages.sh | 52 +++++++++++++++++++++++++++++++++++++++ scripts/createSrcAndDocPackage.sh | 52 --------------------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) create mode 100755 scripts/createSourcePackages.sh delete mode 100755 scripts/createSrcAndDocPackage.sh (limited to 'scripts') diff --git a/scripts/createSourcePackages.sh b/scripts/createSourcePackages.sh new file mode 100755 index 0000000000..6bec3202c6 --- /dev/null +++ b/scripts/createSourcePackages.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +## Command line parameters +if [[ $# != 1 ]]; then + cat < + + Creates tar and zip source package from HEAD of the main repository and submodules. + Files and directories are named after . + example: + $0 2.2.0-beta +USAGE + exit 1 +fi + +VERSION=$1 +PREFIX=qt-creator-${VERSION}-src +cd `dirname $0`/.. +RESULTDIR=`pwd` +TEMPSOURCES=`mktemp -d -t qtcCreatorSourcePackage.XXXXXX` +echo "Temporary directory: ${TEMPSOURCES}" +echo "Creating tar archive..." + +echo " Creating tar sources of repositories..." +git archive --format=tar --prefix=${PREFIX}/ HEAD > ${TEMPSOURCES}/__qtcreator_main.tar || exit 1 +cd src/shared/qbs || exit 1 +git archive --format=tar --prefix=${PREFIX}/src/shared/qbs/ HEAD > ${TEMPSOURCES}/__qtcreator_qbs.tar || exit 1 + +echo " Combining tar sources..." +cd ${TEMPSOURCES} || exit 1 +tar xf __qtcreator_main.tar || exit 1 +tar xf __qtcreator_qbs.tar || exit 1 +tar czf "${RESULTDIR}/${PREFIX}.tar.gz" ${PREFIX}/ || exit 1 + +echo "Creating zip archive..." +echo " Filtering binary vs text files..." +# write filter for text files (for use with 'file' command) +echo ".*:.*ASCII +.*:.*directory +.*:.*empty +.*:.*POSIX +.*:.*html +.*:.*text" > __txtpattern || exit 1 +# list all files +find ${PREFIX} > __packagedfiles || exit 1 +# record file types +file -f __packagedfiles > __filetypes || exit 1 +echo " Creating archive..." +# zip text files and binary files separately +cat __filetypes | grep -f __txtpattern -v | cut -d: -f1 | zip -9q "${RESULTDIR}/${PREFIX}.zip" -@ || exit 1 +cat __filetypes | grep -f __txtpattern | cut -d: -f1 | zip -l9q "${RESULTDIR}/${PREFIX}.zip" -@ || exit 1 diff --git a/scripts/createSrcAndDocPackage.sh b/scripts/createSrcAndDocPackage.sh deleted file mode 100755 index 6bec3202c6..0000000000 --- a/scripts/createSrcAndDocPackage.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -## Command line parameters -if [[ $# != 1 ]]; then - cat < - - Creates tar and zip source package from HEAD of the main repository and submodules. - Files and directories are named after . - example: - $0 2.2.0-beta -USAGE - exit 1 -fi - -VERSION=$1 -PREFIX=qt-creator-${VERSION}-src -cd `dirname $0`/.. -RESULTDIR=`pwd` -TEMPSOURCES=`mktemp -d -t qtcCreatorSourcePackage.XXXXXX` -echo "Temporary directory: ${TEMPSOURCES}" -echo "Creating tar archive..." - -echo " Creating tar sources of repositories..." -git archive --format=tar --prefix=${PREFIX}/ HEAD > ${TEMPSOURCES}/__qtcreator_main.tar || exit 1 -cd src/shared/qbs || exit 1 -git archive --format=tar --prefix=${PREFIX}/src/shared/qbs/ HEAD > ${TEMPSOURCES}/__qtcreator_qbs.tar || exit 1 - -echo " Combining tar sources..." -cd ${TEMPSOURCES} || exit 1 -tar xf __qtcreator_main.tar || exit 1 -tar xf __qtcreator_qbs.tar || exit 1 -tar czf "${RESULTDIR}/${PREFIX}.tar.gz" ${PREFIX}/ || exit 1 - -echo "Creating zip archive..." -echo " Filtering binary vs text files..." -# write filter for text files (for use with 'file' command) -echo ".*:.*ASCII -.*:.*directory -.*:.*empty -.*:.*POSIX -.*:.*html -.*:.*text" > __txtpattern || exit 1 -# list all files -find ${PREFIX} > __packagedfiles || exit 1 -# record file types -file -f __packagedfiles > __filetypes || exit 1 -echo " Creating archive..." -# zip text files and binary files separately -cat __filetypes | grep -f __txtpattern -v | cut -d: -f1 | zip -9q "${RESULTDIR}/${PREFIX}.zip" -@ || exit 1 -cat __filetypes | grep -f __txtpattern | cut -d: -f1 | zip -l9q "${RESULTDIR}/${PREFIX}.zip" -@ || exit 1 -- cgit v1.2.1