7a5fe31640216c5cfa895a85baba7ec9dd31c17f
1 #! /bin/sh
3 set -e
5 ###^^^^^^^^^^^^^^^^^^###
6 ### Global variables ###
7 ###__________________###
12 _sign=false
17 ###^^^^^^^^^^^###
18 ### Functions ###
19 ###___________###
21 usage() {
31 exit 2
32 }
34 make_bootstrap() {
41 -type d -name 'CodeC' -prune -o -exec rm -rf {} +
42 }
44 error() {
46 exit 1
47 }
49 ###^^^^^^^^^^^^^^^###
50 ### Parse options ###
51 ###_______________###
53 while getopts v:Sh _name
54 do
57 S) _sign=true ;;
58 h|?) usage ;;
59 esac
60 done
64 fi
66 ###^^^^^^^^^^^^^^^^^^^^###
67 ### Prebuild C sources ###
68 ###____________________###
72 make_bootstrap 486 cpfront linux
73 make_bootstrap 486 cpfront cygwin
74 make_bootstrap arm cpfront linux
76 ###^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^###
77 ### Hack: remove temp files from v0.1 ###
78 ###___________________________________###
82 ###^^^^^^^^^^^^^^^^^^^^^^###
83 ### Package dist sources ###
84 ###______________________###
102 ###^^^^^^^^^^^^^^^^###
103 ### Make signature ###
104 ###________________###
108 fi