File: mkdist

package info (click to toggle)
glob2 0.9.4.4-2.3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 34,452 kB
  • ctags: 10,285
  • sloc: cpp: 89,684; python: 868; ansic: 259; makefile: 62; sh: 49
file content (31 lines) | stat: -rwxr-xr-x 1,145 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

#
# USE THIS SCRIPT FOR DISTRIBUTIONS
#
# While the script calls "scons dist", two other things have to happen
# before it. Use this script, "./mkdist" instead of running "scons dist"
# to make a distribution for public release.
#

echo " ----------------------------------------------------"
echo "  Making distribution file"
echo " ----------------------------------------------------"
echo ""
scons -c    #must clean to have an accurate report on next step
echo ""
echo " ----------------------------------------------------"
echo "  Cleared existing compiled files"
echo " ----------------------------------------------------"
echo ""
scons       #must build to make sure the distribution isn't buggy, essential!
echo ""
echo " ----------------------------------------------------"
echo "  Built distribution"
echo " ----------------------------------------------------"
echo ""
scons dist  #finally, if cleaned and still compiles, make the distribution, and only then
echo ""
echo " ----------------------------------------------------"
echo "  Distribution file made"
echo " ----------------------------------------------------"