Debian Codegraph @

weekly/make-weekly-linux

raw
1 #!/bin/bash
2
3 . $(dirname $(readlink -f $0))/make-weekly-common
4
5 function linux_build_codelite() {
6 cd $ROOT_DIR
7 mkdir -p build-release
8 cd build-release
9 rm -fr *.deb
10 cmake -DCMAKE_BUILD_TYPE=Release -DMAKE_DEB=1 -DCOPY_WX_LIBS=1 ..
11 make -j${cpu_count} package
12 package_file=`ls -lt *.deb|awk '{print $9;}'|head -n 1`
13 upload_path="/var/www/html/downloads/codelite/${version}"
14 ssh [email protected] "mkdir -p ${upload_path}"
15 scp ${package_file} [email protected]:${upload_path}
16 ssh [email protected] \
17 "cd ${upload_path} && sha256sum ${package_file} |cut -d' ' -f1 > ${package_file}.sha1 && cat ${package_file}.sha1"
18 cd $curdir
19 }
20
21 function linux_build_wxcrafter() {
22 cd $ROOT_DIR
23 mkdir -p build-release-wxcrafter
24 cd build-release-wxcrafter
25 rm -fr *.deb
26 cmake .. -DCMAKE_BUILD_TYPE=Release -DCOPY_WX_LIBS=1 -DWXC_APP=1 -Wno-dev
27 make -j${cpu_count} package
28 rm -f *Unspecified.deb
29 package_file=`ls -lt *.deb|awk '{print $9;}'|head -n 1`
30 upload_path="/var/www/html/downloads/wxcrafter/${version}"
31 ssh [email protected] "mkdir -p ${upload_path}"
32 scp ${package_file} [email protected]:${upload_path}
33 ssh [email protected] \
34 "cd ${upload_path} && sha256sum ${package_file} |cut -d' ' -f1 > ${package_file}.sha1 && cat ${package_file}.sha1"
35 cd $curdir
36 }
37
38 linux_build_codelite
39 linux_build_wxcrafter