File tree Expand file tree Collapse file tree 2 files changed +18
-30
lines changed Expand file tree Collapse file tree 2 files changed +18
-30
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /usr/bin/env bash
2
+ set -Eeuo pipefail
2
3
3
- for i in ` find ./ -maxdepth 1 -mindepth 1 -type d` ; do
4
- if [ $i = " ./.git" ]; then
5
- continue
6
- fi
7
- if [ $i != ./$1 ]; then
8
- continue
9
- fi
10
- cd $i
11
- echo ....
12
- echo ....
13
- echo ........................................... BUILDING: $i
14
- echo ....
15
- echo ....
16
- dpkg-buildpackage -j$(( $(cat / proc/ cpuinfo | grep processor | wc - l)+ 1 ))
17
- cd ..
4
+ if (( $# >= 1 )) ; then
5
+ projects=( " $@ " )
6
+ else
7
+ readarray -t projects < <( grep -v ' # ' build-order)
8
+ fi
9
+
10
+ for project in " ${projects[@]} " ; do
11
+ echo ....
12
+ echo ....
13
+ echo ........................................... BUILDING: " $project "
14
+ echo ....
15
+ echo ....
16
+
17
+ pushd " $project " > /dev/null
18
+ mint-build
19
+ popd > /dev/null
18
20
done
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments