Commit 3b7c39059044adf454a551d8c07748cd3a8836b5

adapt release script to new websrc setup
tools/create-dss-release
(20 / 8)
  
88export PATH=$PATH:/var/lib/gems/1.8/bin/
99
1010
11GIT_REPO=git://gitorious.digitalstrom.org/dss/dss-mainline.git
11DSS_REPO=git://gitorious.digitalstrom.org/dss/dss-mainline.git
12WEBSRC_REPO=git://gitorious.digitalstrom.org/dss-websrc/dss-websrc-mainline.git
1213
1314if [ -z "$2" ]; then
1415 echo "Usage: $(basename $0) <release version string> <git branch name>"
2525 exit 2
2626fi
2727
28git clone --depth 1 $GIT_REPO $TARGET_DIR
28git clone --depth 1 $DSS_REPO $TARGET_DIR
2929cd dss-$DSS_RELEASE_VERSION
3030git branch $DSS_RELEASE_BRANCH origin/$DSS_RELEASE_BRANCH
3131git checkout $DSS_RELEASE_BRANCH
3232git rev-parse HEAD > .dss_git_version
3333git branch|grep ^*|sed -e 's|^\*\s*||' > .dss_git_branch
3434
35git submodule update --init
36./websrc/tools/build_and_copy_weblibs.sh websrc data/webroot/js/
37
3835# copy WSDL file
3936cp webservices/dss.wsdl data/webroot
4037
41# clean up release tarball
4238
43cd ..
44tar cvzf dss-$DSS_RELEASE_VERSION{.tar.gz,} --exclude=\*/.git* --exclude=\*/websrc\*
39
40# checkout websrc
41git clone --depth 1 $WEBSRC_REPO
42cd dss-websrc-mainline
43autoreconf -i
44./configure --prefix=$(pwd)/install
45make
46make install
47cp -r ./install/share/dss-web/webroot/* ../data/webroot
48cd .. # websrc
49
50cd .. # dss
51
52tar cvzf dss-$DSS_RELEASE_VERSION{.tar.gz,} \
53 --exclude=\*/.git\* \
54 --exclude=\*/dss-websrc-mainline\* \
55 --exclude=\*/websrc\*
4556
4657
4758