List of commits:
Subject Hash Author Date (UTC)
cleanup eb9f38fa1ef314c60e985b754ab0b46392dae57e Sylvain BERTRAND 2017-07-20 22:10:41
typo 5acc700c8afb099ee6bf079aea6595417e001bbc Sylvain BERTRAND 2017-07-19 02:33:06
cleanup make script from original script cefce38df0769905657a43f878596b61747ce318 Sylvain BERTRAND 2017-07-18 22:52:20
static->dynamic typo 43d07ddf51b695b4ab4a34a800ec55f91b1e8508 Sylvain BERTRAND 2017-07-18 22:46:09
Initial commit 474cb9c92803539b47670ebac06fdc2b517f3bca Sylvain BERTRAND 2017-07-18 20:38:13
Commit eb9f38fa1ef314c60e985b754ab0b46392dae57e - cleanup
Author: Sylvain BERTRAND
Author date (UTC): 2017-07-20 22:10
Committer name: Sylvain BERTRAND
Committer date (UTC): 2017-07-20 22:10
Parent(s): 5acc700c8afb099ee6bf079aea6595417e001bbc
Signer:
Signing key:
Signing status: N
Tree: d38d359698fa64fb4d5d56bf607d01a5eb0590fd
File Lines added Lines deleted
make 32 46
make.libuuid.sh 5 2
make.uuidgen.sh 1 0
File make changed (mode: 100755) (index fcdbf59..2388e39)
... ... subsep_end()
65 65
66 66 ################################################################################ ################################################################################
67 67
68 sep_start;echo 'looking for source path:'
69 68 if test -f make; then if test -f make; then
70 69 src_path=. src_path=.
71 70 else else
72 71 src_path=$(cd $(dirname "$0"); pwd) src_path=$(cd $(dirname "$0"); pwd)
73 72 echo "$src_path" | grep -q '[[:blank:]]' && echo "$src_path" | grep -q '[[:blank:]]' &&
74 73 die "out of tree builds are impossible with whitespace in source path." die "out of tree builds are impossible with whitespace in source path."
75 test -e "$src_path/config.h" &&
76 die "out of tree builds are impossible with config.h in source dir."
77 74 fi fi
78 echo "source path is $src_path";sep_end
79 75
80 76 ################################################################################ ################################################################################
81 77
 
... ... for opt; do
103 99 done done
104 100 } }
105 101
102 spaces_concat()
103 {
104 printf "$1" | tr -s '[:space:]' ' '
105 }
106
106 107 CMDLINE_SET=' CMDLINE_SET='
107 108 bin_cc bin_cc
108 109 bin_ccld bin_ccld
 
... ... CMDLINE_SET='
113 114 slibuuid_cc slibuuid_cc
114 115 slibuuid_ccld slibuuid_ccld
115 116 prefix prefix
116 eprefix
117 117 bindir bindir
118 118 libdir libdir
119 119 includedir includedir
120 sysconfdir
121 120 localstatedir localstatedir
122 pkglibexecdir
123 version
124 121 ' '
125 122
126 123 ################################################################################ ################################################################################
127 124
128 125 #command line set defaults #command line set defaults
129 126 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
130 bin_cc_default='gcc -Wall -Wextra -std=gnu99 -O2 -c'
131 bin_ccld_default='gcc -static'
127 bin_cc_default="gcc -Wall -Wextra \
128 -std=gnu99 -O2 -c"
129
130 bin_ccld_default="gcc -static"
131
132 libuuid_cc_default="gcc -Wall -Wextra \
133 -std=gnu99 -O2 -fPIC -c"
132 134
133 libuuid_cc_default='gcc -Wall -Wextra -std=gnu99 -O2 -fPIC -c'
134 libuuid_ar_default="ar rcs"
135 libuuid_ar_default="ar rcs"
135 136
136 dbin_cc_default='gcc -Wall -Wextra -std=gnu99 -O2 -c'
137 dbin_ccld_default='gcc -Wl,--as-needed'
137 dbin_cc_default="gcc -Wall -Wextra \
138 -std=gnu99 -O2 -c"
139
140 dbin_ccld_default="gcc -Wl,--as-needed"
141
142 slibuuid_cc_default="gcc -Wall -Wextra \
143 -std=gnu99 -O2 -fPIC -c"
138 144
139 slibuuid_cc_default="gcc -Wall -Wextra \
140 -std=gnu99 -O2 -fPIC -c
141 "
142 145 slibuuid_ccld_default="gcc -shared \ slibuuid_ccld_default="gcc -shared \
143 146 -Wl,--version-script=$src_path/libuuid.sym \ -Wl,--version-script=$src_path/libuuid.sym \
144 147 -Wl,-soname,libuuid.so.$libuuid_api \ -Wl,-soname,libuuid.so.$libuuid_api \
145 -Wl,--as-needed \
146 "
148 -Wl,--as-needed"
147 149 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
148 150
149 151 prefix_default=/usr/local prefix_default=/usr/local
150 eprefix_default='$prefix'
151 152 bindir_default='$prefix/bin' bindir_default='$prefix/bin'
152 libdir_default='$eprefix/lib'
153 libdir_default='$prefix/lib'
153 154 includedir_default='$prefix/include' includedir_default='$prefix/include'
154 sysconfdir_default='$prefix/etc'
155 155 localstatedir_default='$prefix/var' localstatedir_default='$prefix/var'
156 pkglibexecdir_default='$libdir/udev'
157 version_default=24
158 156 set_default $CMDLINE_SET set_default $CMDLINE_SET
159 157
160 158 libuuid_only=no libuuid_only=no
 
... ... Standard options:
183 181 --disable-dynamic disable the build of shared lib and dynamic binary --disable-dynamic disable the build of shared lib and dynamic binary
184 182
185 183 --prefix=PREFIX architecture independent prefix [$prefix_default] --prefix=PREFIX architecture independent prefix [$prefix_default]
186 --eprefix=EPREFIX architecture dependent exec prefix [$eprefix_default]
187 184 --libdir=DIR object code libraries [$libdir_default] --libdir=DIR object code libraries [$libdir_default]
188 185 --includedir=DIR C header files [$includedir_default] --includedir=DIR C header files [$includedir_default]
189 --sysconfdir=DIR read-only single-machine data [$sysconfdir_default]
190 186 --localstatedir=DIR modifiable single-machine data [$localstatedir_default] --localstatedir=DIR modifiable single-machine data [$localstatedir_default]
191 --pkglibexecdir=DIR program executables [$pkglibexecdir_default]
192
193 --version=VERSION override the version number [$version_default]
194 187
195 188 Advanced options: Advanced options:
196 --bin-cc=CC use C compiler command line CC for static target uuidgen [$bin_cc_default]
197 --bin-ccld=CCLD use linker command line CCLD for static target uuidgen [$bin_ccld_default]
189 --bin-cc=CC use C compiler command line CC for static target uuidgen [$(spaces_concat "$bin_cc_default")]
190 --bin-ccld=CCLD use linker command line CCLD for static target uuidgen [$(spaces_concat "$bin_ccld_default")]
198 191
199 --dbin-cc=CC use C compiler command line CC for dynamic target uuidgen [$dbin_cc_default]
200 --dbin-ccld=CCLD use linker command line CCLD for dynamic target uuidgen [$dbin_ccld_default]
192 --dbin-cc=CC use C compiler command line CC for dynamic target uuidgen [$(spaces_concat "$dbin_cc_default")]
193 --dbin-ccld=CCLD use linker command line CCLD for dynamic target uuidgen [$(spaces_concat "$dbin_ccld_default")]
201 194
202 --libuuid-cc=CC use C compiler command line CC for static target libuuid [$libuuid_cc_default]
203 --libuuid-ar=AR use archive command line AR for static target libuuid [$libuuid_ar_default]
195 --libuuid-cc=CC use C compiler command line CC for static target libuuid [$(spaces_concat "$libuuid_cc_default")]
196 --libuuid-ar=AR use archive command line AR for static target libuuid [$(spaces_concat "$libuuid_ar_default")]
204 197
205 --slibuuid-cc=CC use C compiler command line CC for shared target libuuid [$slibuuid_cc_default]
206 --slibuuid-ccld=CCLD use linker command line CCLD for shared target libuuid [$slibuuid_ccld_default]
198 --slibuuid-cc=CC use C compiler command line CC for shared target libuuid [$(spaces_concat "$slibuuid_cc_default")]
199 --slibuuid-ccld=CCLD use linker command line CCLD for shared target libuuid [$(spaces_concat "$slibuuid_ccld_default")]
207 200 EOF EOF
208 201 exit 0 exit 0
209 202 } }
 
... ... for opt do
224 217 --disable-dynamic) --disable-dynamic)
225 218 disable_dynamic=yes disable_dynamic=yes
226 219 ;; ;;
227 --man)
228 MAN=yes
229 ;;
230 220 *) *)
231 221 optname=${opt%%=*} optname=${opt%%=*}
232 222 optname=${optname#--} optname=${optname#--}
 
... ... done
242 232
243 233 ################################################################################ ################################################################################
244 234
235 sep_start;echo "source code path is:$src_path";sep_end
236
245 237 path_expand() path_expand()
246 238 { {
247 239 e_v=$1 e_v=$1
 
... ... path_expand()
256 248
257 249 sep_start;echo 'expanding final paths:' sep_start;echo 'expanding final paths:'
258 250 e_prefix=$(path_expand "$prefix") e_prefix=$(path_expand "$prefix")
259 e_eprefix=$(path_expand "$eprefix")
260 251 e_bindir=$(path_expand "$bindir") e_bindir=$(path_expand "$bindir")
261 252 e_libdir=$(path_expand "$libdir") e_libdir=$(path_expand "$libdir")
262 253 e_includedir=$(path_expand "$includedir") e_includedir=$(path_expand "$includedir")
263 e_sysconfdir=$(path_expand "$sysconfdir")
264 254 e_localstatedir=$(path_expand "$localstatedir") e_localstatedir=$(path_expand "$localstatedir")
265 e_pkglibexecdir=$(path_expand "$pkglibexecdir")
266 255 echo "prefix=$e_prefix" echo "prefix=$e_prefix"
267 echo "eprefix=$e_eprefix"
268 256 echo "bin=$e_bindir" echo "bin=$e_bindir"
269 257 echo "libdir=$e_libdir" echo "libdir=$e_libdir"
270 258 echo "includedir=$e_includedir" echo "includedir=$e_includedir"
271 echo "sysconfdir=$e_sysconfdir"
272 259 echo "localstatedir=$e_localstatedir" echo "localstatedir=$e_localstatedir"
273 echo "pkglibexecdir=$e_pkglibexecdir"
274 260 sep_end sep_end
275 261
276 262 ################################################################################ ################################################################################
File make.libuuid.sh changed (mode: 100644) (index 63d0ae4..c2a3c1d)
... ... if test x$disable_dynamic = xno; then
3 3 sep_start;echo 'slibuuid:compile src files' sep_start;echo 'slibuuid:compile src files'
4 4 for libuuid_src_file in $libuuid_src_files for libuuid_src_file in $libuuid_src_files
5 5 do do
6 # build the object file name prefixed with 's', like "Shared"
6 7 slibuuid_o_file=${libuuid_src_file%.c} slibuuid_o_file=${libuuid_src_file%.c}
7 8 slibuuid_o_file_name=$(basename $slibuuid_o_file) slibuuid_o_file_name=$(basename $slibuuid_o_file)
8 9 slibuuid_o_file=$(dirname $slibuuid_o_file)/s${slibuuid_o_file_name}.o slibuuid_o_file=$(dirname $slibuuid_o_file)/s${slibuuid_o_file_name}.o
 
... ... if test x$disable_static = xno; then
42 43 sep_start;echo 'libuuid:compile src files' sep_start;echo 'libuuid:compile src files'
43 44 for libuuid_src_file in $libuuid_src_files for libuuid_src_file in $libuuid_src_files
44 45 do do
46 # build the object file name prefixed with 'a', like "Archive, lib.A'
45 47 libuuid_o_file=${libuuid_src_file%.c} libuuid_o_file=${libuuid_src_file%.c}
46 libuuid_o_file=${libuuid_o_file}.o
47
48 libuuid_o_file_name=$(basename $libuuid_o_file)
49 libuuid_o_file=$(dirname $libuuid_o_file)/a${libuuid_o_file_name}.o
50
48 51 echo "LIBUUID_CC $libuuid_src_file-->$libuuid_o_file" echo "LIBUUID_CC $libuuid_src_file-->$libuuid_o_file"
49 52 mkdir -p -- $(dirname $libuuid_o_file) mkdir -p -- $(dirname $libuuid_o_file)
50 53
File make.uuidgen.sh changed (mode: 100644) (index bca2ae9..b568f0a)
... ... if test x$disable_dynamic = xno; then
3 3 sep_start;echo 'duuidgen:compile src files' sep_start;echo 'duuidgen:compile src files'
4 4 for uuidgen_src_file in $uuidgen_src_files for uuidgen_src_file in $uuidgen_src_files
5 5 do do
6 # build object names prefixed with 'd', like 'D'ynamic
6 7 duuidgen_o_file=${uuidgen_src_file%.c} duuidgen_o_file=${uuidgen_src_file%.c}
7 8 duuidgen_o_file_name=$(basename $duuidgen_o_file) duuidgen_o_file_name=$(basename $duuidgen_o_file)
8 9 duuidgen_o_file=$(dirname $duuidgen_o_file)/d${duuidgen_o_file_name}.o duuidgen_o_file=$(dirname $duuidgen_o_file)/d${duuidgen_o_file_name}.o
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyanuuid

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyanuuid

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyanuuid

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main