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_PRE_SRC ' >> SourcesList.txt
65 for x
in `find * | grep '\.tst$'`; do
66 echo -n "$x " >> SourcesList.txt
69 echo ' )' >> SourcesList.txt
70 echo >> SourcesList.txt
71 echo 'SET ( STEST_ALL_SRC ' >> SourcesList.txt
73 for x
in `find * | grep '\.tst$'`; do
74 y
=`echo $x | sed 's/tst$/cpp/'`
75 echo -n "$y " >> SourcesList.txt
78 echo ' )' >> SourcesList.txt
84 if [ -z "$1" ]; then error
; fi
85 log Preparing
for release
"$1" of LibSylph...
86 log Cleaning SVN stuff...
88 find .
-name '.svn' -exec rm -rf '{}' \
;
89 log Creating CMake stuff
93 log Removing old builds
94 for x
in `ls | grep "^libsylph-.*-src.tar.bz2$"`; do
97 log Creating tarball
in parent directory...
99 cp sylph libsylph-
"$1"-src
100 tar cjf libsylph-
"$1"-src libsylph-
"$1"-src.
tar.bz2
101 rm -rf libsylph-
"$1"-src
103 log Removing this
script '('don
\'t worry
, it
\'s up
in SVN
')'...
131 echo 'This script contains several useful functions for the LibSylph devs.'