Commit 3b7c39059044adf454a551d8c07748cd3a8836b5
- Diff rendering mode:
- inline
- side by side
tools/create-dss-release
(20 / 8)
|   | |||
| 8 | 8 | export PATH=$PATH:/var/lib/gems/1.8/bin/ | |
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | GIT_REPO=git://gitorious.digitalstrom.org/dss/dss-mainline.git | ||
| 11 | DSS_REPO=git://gitorious.digitalstrom.org/dss/dss-mainline.git | ||
| 12 | WEBSRC_REPO=git://gitorious.digitalstrom.org/dss-websrc/dss-websrc-mainline.git | ||
| 12 | 13 | ||
| 13 | 14 | if [ -z "$2" ]; then | |
| 14 | 15 | echo "Usage: $(basename $0) <release version string> <git branch name>" | |
| … | … | ||
| 25 | 25 | exit 2 | |
| 26 | 26 | fi | |
| 27 | 27 | ||
| 28 | git clone --depth 1 $GIT_REPO $TARGET_DIR | ||
| 28 | git clone --depth 1 $DSS_REPO $TARGET_DIR | ||
| 29 | 29 | cd dss-$DSS_RELEASE_VERSION | |
| 30 | 30 | git branch $DSS_RELEASE_BRANCH origin/$DSS_RELEASE_BRANCH | |
| 31 | 31 | git checkout $DSS_RELEASE_BRANCH | |
| 32 | 32 | git rev-parse HEAD > .dss_git_version | |
| 33 | 33 | git branch|grep ^*|sed -e 's|^\*\s*||' > .dss_git_branch | |
| 34 | 34 | ||
| 35 | git submodule update --init | ||
| 36 | ./websrc/tools/build_and_copy_weblibs.sh websrc data/webroot/js/ | ||
| 37 | |||
| 38 | 35 | # copy WSDL file | |
| 39 | 36 | cp webservices/dss.wsdl data/webroot | |
| 40 | 37 | ||
| 41 | # clean up release tarball | ||
| 42 | 38 | ||
| 43 | cd .. | ||
| 44 | tar cvzf dss-$DSS_RELEASE_VERSION{.tar.gz,} --exclude=\*/.git* --exclude=\*/websrc\* | ||
| 39 | |||
| 40 | # checkout websrc | ||
| 41 | git clone --depth 1 $WEBSRC_REPO | ||
| 42 | cd dss-websrc-mainline | ||
| 43 | autoreconf -i | ||
| 44 | ./configure --prefix=$(pwd)/install | ||
| 45 | make | ||
| 46 | make install | ||
| 47 | cp -r ./install/share/dss-web/webroot/* ../data/webroot | ||
| 48 | cd .. # websrc | ||
| 49 | |||
| 50 | cd .. # dss | ||
| 51 | |||
| 52 | tar cvzf dss-$DSS_RELEASE_VERSION{.tar.gz,} \ | ||
| 53 | --exclude=\*/.git\* \ | ||
| 54 | --exclude=\*/dss-websrc-mainline\* \ | ||
| 55 | --exclude=\*/websrc\* | ||
| 45 | 56 | ||
| 46 | 57 | ||
| 47 | 58 |

