13 cat > README-GIT
<< EOT
14 You have checked out the current master branch from Git. Code from Git does
15 not always compile or can be incomplete.
17 if [ "$1" == "compile" ]; then
18 cat >> README-GIT
<< EOT
19 However, current code seems to compile. Be warned that it may still have many
20 bugs, or can be simply incomplete. If you want to have working code, please
21 check out the latest relase from the 'unstable' branch.
24 cat >> README-GIT
<< EOT
25 GIT is currently known to be broken. Please check out the latest release from
26 the 'unstable' branch.
29 cat >> README-GIT
<< EOT
31 For instructions on building and installing, please see the README file in this
32 directory. You might need to recreate the src/SourcesList.txt files. In order to
37 This will create the required files for the build.
43 log Creating
/updating SourcesList.txt...
45 echo '# This file is automatically generated by developers.sh in' \
47 echo '# the main source directory. DO NOT EDIT MANUALLY!' >> SourcesList.txt
48 echo >> SourcesList.txt
49 echo 'SET ( SYLPH_ALL_SRC ' >> SourcesList.txt
51 for x
in `find * | grep '\.cpp$'`; do
52 echo -n "$x " >> SourcesList.txt
55 echo ' )' >> SourcesList.txt
59 echo '# This file is automatically generated by developers.sh in' \
61 echo '# the main source directory. DO NOT EDIT MANUALLY!' >> SourcesList.txt
62 echo >> SourcesList.txt
63 echo 'SET ( STEST_ALL_SRC ' >> SourcesList.txt
65 for x
in `find * | grep '\.cpp$'`; do
66 echo -n "$x " >> SourcesList.txt
69 echo ' )' >> SourcesList.txt
75 if [ -z "$1" ]; then error
; fi
76 log Preparing
for release
"$1" of LibSylph...
77 log Cleaning SVN stuff...
79 find .
-name '.svn' -exec rm -rf '{}' \
;
80 log Creating CMake stuff
84 log Removing old builds
85 for x
in `ls | grep "^libsylph-.*-src.tar.bz2$"`; do
88 log Creating tarball
in parent directory...
90 cp sylph libsylph-
"$1"-src
91 tar cjf libsylph-
"$1"-src libsylph-
"$1"-src.
tar.bz2
92 rm -rf libsylph-
"$1"-src
94 log Removing this
script '('don
\'t worry
, it
\'s up
in SVN
')'...
122 echo 'This script contains several useful functions for the LibSylph devs.'