From kde-commits Sun Aug 07 13:38:17 2016 From: Bruno Coudoin Date: Sun, 07 Aug 2016 13:38:17 +0000 To: kde-commits Subject: [gcompris/KDE/0.60] tools: tools, improved source build script Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=147057711930720 Git commit cb28872a13a3da9bf688ebfb8d5ffcdbdf8c1ab7 by Bruno Coudoin. Committed on 07/08/2016 at 13:37. Pushed by bcoudoin into branch 'KDE/0.60'. tools, improved source build script no more use git alias delete created temp branch small other fixes. M +11 -2 tools/source_build_dist.sh http://commits.kde.org/gcompris/cb28872a13a3da9bf688ebfb8d5ffcdbdf8c1ab7 diff --git a/tools/source_build_dist.sh b/tools/source_build_dist.sh index afecf59..ce836b9 100755 --- a/tools/source_build_dist.sh +++ b/tools/source_build_dist.sh @@ -4,14 +4,23 @@ # create the tarball # = +if [ ! -f gcompris.appdata.xml ] +then + echo "ERROR: Run me from the top level GCompris source dir" + exit 1 +fi + # The current version version=3D$(sed -n -e 's/set(GCOMPRIS_MINOR_VERSION \([0-9]\+\)).*/\1/p' C= MakeLists.txt) = # Uncomment if this is not already done -git co -b 0.${version}-po +git checkout -b 0.${version}-po mkdir -p build cd build +cmake .. make getSvnTranslations git add -f ../po -git ci -a -m "PO INTEGRATED / DO NOT PUSH ME" +git commit -a -m "PO INTEGRATED / DO NOT PUSH ME" make dist +git checkout 0.${version} +git branch -D 0.${version}-po