File: build_all.sh

package info (click to toggle)
easyloggingpp 9.97.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,864 kB
  • sloc: cpp: 11,415; python: 2,336; sh: 337; makefile: 24
file content (15 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Builds all files into bin/

[ -d "bin" ] || mkdir "bin"
rm -rf bin/*

find . -maxdepth 1 -type f -name '*.cpp' -exec sh compile.sh {} $1 \;
echo "Completed!"

files=$(ls -l bin/)
if [ "$files" = "total 0" ];then
  exit 1
else
  exit 0
fi