1 #!/bin/sh 2 3 umount /mnt # optional 4 echo "Building" 5 ( 6 cd strace && 7 ./configure && 8 make && 9 echo "Build: SUCCESS" 10 size strace 11 ./strace 12 # strace may segfault, let's see exit code 13 echo "Exit code: $?" 14 ./strace /bin/true 15 echo "Exit code: $?" 16 ftpput -P "$FTP_PORT" "$FTP_SERVER" strace 17 ) 2>&1 | tee strace_build.log 18 mount -o remount,ro /home 19 sync 20 sleep 1 21