File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # --------------------------------------------------------------------------
4+ #
5+ # Build tool for Windows to package up files ready for release.
6+ #
7+ # Two packages are made, each in a zip file: one containing the collection and
8+ # the other containing documentation. Both zip files are written to the
9+ # _release sub-folder in the collection's home directory.
10+ #
11+ # Any pre-existing _release sub-folder is deleted before the zip files are
12+ # created.
13+ #
14+ # Requirements:
15+ #
16+ # - The release version number must be passed to this script as a command
17+ # line.
18+ #
19+ # - The zip utility is required to zip up the files.
20+ #
21+ # --------------------------------------------------------------------------
22+
23+
24+ VERSION=$1
25+ RELEASE_DIR=" ./_release"
26+ RELEASE_FILE_PREFIX=" csdb-v"
27+ COLLECTION_ZIP_FILE=" ${RELEASE_DIR} /${RELEASE_FILE_PREFIX}${VERSION} .zip"
28+ DOCS_ZIP_FILE=" ${RELEASE_DIR} /${RELEASE_FILE_PREFIX}${VERSION} -docs.zip"
29+
30+ echo Creating CSDB release $1
31+ echo
32+
33+ rm -rf $RELEASE_DIR || true
34+ mkdir $RELEASE_DIR
35+
36+ echo Zipping collection
37+ zip -j -q $COLLECTION_ZIP_FILE ./collection/*
38+
39+ echo Zipping documentation
40+ zip -j -q $DOCS_ZIP_FILE ./docs/*
41+
42+ echo Done
You can’t perform that action at this time.
0 commit comments