1 #! /bin/bash
3 set -e
5 abspath() {
7 }
9 ###^^^^^^^^^^^^^^^^^^###
10 ### Global variables ###
11 ###__________________###
16 _sign=false
21 ###^^^^^^^^^^^###
22 ### Functions ###
23 ###___________###
25 usage() {
35 exit 2
36 }
38 make_bootstrap() {
45 -type d -name 'CodeC' -prune -o -exec rm -rf {} +
46 }
48 error() {
50 exit 1
51 }
53 ###^^^^^^^^^^^^^^^###
54 ### Parse options ###
55 ###_______________###
57 while getopts v:Sh _name
58 do
61 S) _sign=true ;;
62 h|?) usage ;;
63 esac
64 done
68 fi
70 ###^^^^^^^^^^^^^^^^^^^^###
71 ### Prebuild C sources ###
72 ###____________________###
76 make_bootstrap 486 cpfront linux
77 #make_bootstrap 486 cpfront cygwin
78 #make_bootstrap arm cpfront linux
79 #make_bootstrap powerpc cpfront osx
81 ###^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^###
82 ### Hack: remove temp files from v0.1 ###
83 ###___________________________________###
87 ###^^^^^^^^^^^^^^^^^^^^^^###
88 ### Package dist sources ###
89 ###______________________###
93 cp -r \
108 ###^^^^^^^^^^^^^^^^###
109 ### Make signature ###
110 ###________________###
114 fi