~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to tools/create_release.sh

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-07-12 09:36:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110712093646-yp9dbxan44dmw15h
Tags: 0.9-1
* New upstream release.
* Remove all patches now upstream; only patch for
  -Wno-error=unused-but-set-variable remains.
* Bump Standards-Version to 3.9.2 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
git log release-0.8..master | grep ^Author: | sed 's/ <.*//; s/^Author: //' | sort | uniq -c | sort -nr
 
4
 
 
5
echo "are you sure these guys received proper credit in the about dialog?"
 
6
read
 
7
 
 
8
dt_decoration=$(git describe --tags $branch | sed 's,^release-,,;s,-,+,;s,-,~,;')
 
9
git archive master --prefix=darktable-$dt_decoration/ -o darktable-$dt_decoration.tar
 
10
 
 
11
mkdir -p tmp
 
12
cd tmp
 
13
tar xvf ../darktable-$dt_decoration.tar
 
14
 
 
15
# create version header for non-git tarball:
 
16
echo "set(PROJECT_VERSION \"$dt_decoration\")" >> darktable-$dt_decoration/cmake/version.cmake
 
17
 
 
18
# remove docs, that's > 45 MB
 
19
rm -rf darktable-$dt_decoration/doc/htdocs
 
20
cp darktable-$dt_decoration/doc/usermanual/CMakeLists.txt dreggn.txt
 
21
rm -rf darktable-$dt_decoration/doc/usermanual/*
 
22
mv dreggn.txt darktable-$dt_decoration/doc/usermanual/CMakeLists.tx
 
23
tar cvzf darktable-$dt_decoration.tar.gz darktable-$dt_decoration/
 
24
rm ../darktable-$dt_decoration.tar
 
25
mv darktable-$dt_decoration.tar.gz ..
 
26
 
 
27
# now test the build:
 
28
rm -rf darktable-*
 
29
tar xvzf ../darktable-$dt_decoration.tar.gz
 
30
cd darktable-*
 
31
./build.sh
 
32
 
 
33
echo "actually to test this build you should do:"
 
34
echo "cd tmp/darktable-$dt_decoration/build && sudo make install"
 
35
 
 
36
 
 
37