forked from m2osw/snapwebsites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk
executable file
·64 lines (54 loc) · 1.54 KB
/
mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
#
# Run make with proper parameters for me...
case "$1" in
"-a"|"--all")
# Rebuild all
#
make -C ../../BUILD
;;
"-l"|"--less")
# Rebuild and use less to ease search within long errors (C++...)
#
make -C ../../BUILD/snapwebsites install 2>&1 | less
;;
"-p"|"--packages")
# Run a dput to generate all the packages on launchpad
#
make -C ../../BUILD dput
;;
"-v"|"--verbose")
# Rebuild snapwebsites with verbosity ON
#
VERBOSE=1 make -C ../../BUILD/snapwebsites install
;;
"-r"|"--release")
# Rebuild the release version
#
make -C ../../RELEASE/snapwebsites install
;;
"")
# Default, just rebuild snapwebsites
#
make -C ../../BUILD/snapwebsites install | grep -v " Up-to-date: "
# The following is a bit better as it does not print out all the
# installation stuff, but it does the first part twice which is
# taking too long
#if make -C ../../BUILD/snapwebsites
#then
# # It's important to install for various parts so we run that too
# # but we send the output to a log because it's just way too much
# # ("unfortunately" this goes through the "make sure things are
# # up to date" before it does the installation itself.)
# #
# echo "-- Installing Now (output saved in ../../tmp/install.log)"
# mkdir -p ../../tmp
# make -C ../../BUILD/snapwebsites install > ../../tmp/install.log
#fi
;;
*)
echo "error: unknown command line option $1"
exit 1
;;
esac
# vim: ts=4 sw=4 et