4 ECPP_PATTERN="eclipse-cpp*.tar.gz"
6 # check, if there is exactly 1 eclipse-cpp*.tar.gz in Downloads
7 pushd Downloads >/dev/null
8 if [ $(ls $ECPP_PATTERN| wc -l) -ne 1 ]; then
9 echo "Es muss genau ein $ECPP_PATTERN in Downloads sein."
12 eclipse_cpp_tgz=$(ls $ECPP_PATTERN)
15 if [ -d eclipse ]; then
18 tar xf $eclipse_cpp_tgz
21 # bestimme eclipse version
22 eversion=${eclipse_cpp_tgz#eclipse-cpp-}
23 eversion=${eversion%-linux*}
24 echo "version=$eversion" >> debian/rules.pre
25 echo "export version=$eversion" >> debian/setenv.sh
28 arch=${eclipse_cpp_tgz#*gtk-}
30 echo "arch=$arch" >> debian/rules.pre
31 echo "export arch=$arch" >> debian/setenv.sh