source: CLFS3/master.sh@ 535fd45

2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 535fd45 was 535fd45, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Fixed SCRIPT_ROOT and SRCSDIR permissions in CLFS2 and CLFS3 to don't break jhalfs run when using CLEAN feature.

  • Property mode set to 100644
File size: 20.0 KB
Line 
1#!/bin/bash
2# $Id$
3
4###################################
5### FUNCTIONS ###
6###################################
7
8
9#----------------------------#
10host_prep_Makefiles() { # Initialization of the system
11#----------------------------#
12 local CLFS_HOST
13
14 echo "${tab_}${GREEN}Processing... ${L_arrow}host prep files ( SETUP ) ${R_arrow}"
15
16 # defined here, only for ease of reading
17 CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
18(
19cat << EOF
20
21025-addinguser:
22 @\$(call echo_message, Building)
23 @if [ ! -d \$(LUSER_HOME) ]; then \\
24 groupadd \$(LGROUP); \\
25 useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
26 else \\
27 touch luser-exist; \\
28 fi;
29 @\$(call housekeeping)
30
31026-settingenvironment: 025-addinguser
32 @\$(call echo_message, Building)
33 @if [ -f \$(LUSER_HOME)/.bashrc -a ! -f \$(LUSER_HOME)/.bashrc.XXX ]; then \\
34 mv \$(LUSER_HOME)/.bashrc \$(LUSER_HOME)/.bashrc.XXX; \\
35 fi;
36 @if [ -f \$(LUSER_HOME)/.bash_profile -a ! -f \$(LUSER_HOME)/.bash_profile.XXX ]; then \\
37 mv \$(LUSER_HOME)/.bash_profile \$(LUSER_HOME)/.bash_profile.XXX; \\
38 fi;
39 @echo "set +h" > \$(LUSER_HOME)/.bashrc && \\
40 echo "umask 022" >> \$(LUSER_HOME)/.bashrc && \\
41 echo "CLFS=\$(MOUNT_PT)" >> \$(LUSER_HOME)/.bashrc && \\
42 echo "LC_ALL=POSIX" >> \$(LUSER_HOME)/.bashrc && \\
43 echo "PATH=\$(MOUNT_PT)/cross-tools/bin:/bin:/usr/bin" >> \$(LUSER_HOME)/.bashrc && \\
44 echo "export CLFS LC_ALL PATH" >> \$(LUSER_HOME)/.bashrc && \\
45 echo "" >> \$(LUSER_HOME)/.bashrc && \\
46 echo "unset CFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
47 echo "unset CXXFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
48 echo "" >> \$(LUSER_HOME)/.bashrc && \\
49 echo "export CLFS_HOST=\"${CLFS_HOST}\"" >> \$(LUSER_HOME)/.bashrc && \\
50 echo "export CLFS_TARGET=\"${TARGET}\"" >> \$(LUSER_HOME)/.bashrc && \\
51 echo "export CLFS_MIPS_LEVEL=\"${MIPS_LEVEL}\"" >> \$(LUSER_HOME)/.bashrc && \\
52 echo "export BUILD=\"${ABI}\"" >> \$(LUSER_HOME)/.bashrc && \\
53 echo "source $JHALFSDIR/envars" >> \$(LUSER_HOME)/.bashrc
54 @chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc && \\
55 touch envars && \\
56 chown \$(LUSER):\$(LGROUP) envars
57 @\$(call housekeeping)
58
59027-create-directories: 026-settingenvironment
60 @\$(call echo_message, Building)
61
62 @mkdir -p \$(MOUNT_PT)/{bin,boot,dev,{etc/,}opt,home,lib,mnt}
63 @mkdir -p \$(MOUNT_PT)/{proc,media/{floppy,cdrom},sbin,srv,sys}
64 @mkdir -p \$(MOUNT_PT)/var/{lock,log,mail,run,spool}
65 @mkdir -p \$(MOUNT_PT)/var/{opt,cache,lib/{misc,locate},local}
66 @install -d -m 0750 \$(MOUNT_PT)/root
67 @install -d -m 1777 \$(MOUNT_PT){/var,}/tmp
68 @mkdir -p \$(MOUNT_PT)/usr/{,local/}{bin,include,lib,sbin,src}
69 @mkdir -p \$(MOUNT_PT)/usr/{,local/}share/{doc,info,locale,man}
70 @mkdir -p \$(MOUNT_PT)/usr/{,local/}share/{misc,terminfo,zoneinfo}
71 @mkdir -p \$(MOUNT_PT)/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
72 @for dir in \$(MOUNT_PT)/usr{,/local}; do \\
73 ln -s share/{man,doc,info} \$\$dir ; \\
74 done
75 @\$(call housekeeping)
76
77028-creating-sysfile: 027-create-directories
78 @\$(call echo_message, Building)
79
80 @touch \$(MOUNT_PT)/etc/mtab
81 @echo "root::0:0:root:/root:/bin/ash" >> \$(MOUNT_PT)/etc/passwd
82 @echo "root:x:0:" >> \$(MOUNT_PT)/etc/group
83 @echo "bin:x:1:" >> \$(MOUNT_PT)/etc/group
84 @echo "sys:x:2:" >> \$(MOUNT_PT)/etc/group
85 @echo "kmem:x:3" >> \$(MOUNT_PT)/etc/group
86 @echo "tty:x:4:" >> \$(MOUNT_PT)/etc/group
87 @echo "tape:x:5:" >> \$(MOUNT_PT)/etc/group
88 @echo "daemon:x:6:" >> \$(MOUNT_PT)/etc/group
89 @echo "floppy:x:7:" >> \$(MOUNT_PT)/etc/group
90 @echo "disk:x:8:" >> \$(MOUNT_PT)/etc/group
91 @echo "lp:x:9:" >> \$(MOUNT_PT)/etc/group
92 @echo "dialout:x:10:" >> \$(MOUNT_PT)/etc/group
93 @echo "audio:x:11:" >> \$(MOUNT_PT)/etc/group
94 @echo "video:x:12:" >> \$(MOUNT_PT)/etc/group
95 @echo "utmp:x:13:" >> \$(MOUNT_PT)/etc/group
96 @echo "usb:x:14:" >> \$(MOUNT_PT)/etc/group
97 @echo "cdrom:x:15:" >> \$(MOUNT_PT)/etc/group
98
99 @touch \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/{btmp,lastlog,wtmp}
100 @chmod 664 \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/lastlog
101 @chown -R \$(LUSER) \$(MOUNT_PT) && \\
102 chmod -R a+w \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
103 chmod -R a+w \$(SRCSDIR)
104 @\$(call housekeeping)
105
106EOF
107) >> $MKFILE.tmp
108
109 host_prep=" 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile"
110}
111
112#-----------------------------#
113systemprep_Makefiles() { #
114#-----------------------------#
115 echo "${tab_}${GREEN}Processing... ${L_arrow}system prep tools ( LUSER ) ${R_arrow}"
116
117 for file in systemprep/* ; do
118 # Keep the script file name
119 this_script=`basename $file`
120
121 # Set the dependency for the first target.
122 if [ -z $PREV ] ; then PREV=028-creating-sysfile ; fi
123
124 # First append each name of the script files to a list (this will become
125 # the names of the targets in the Makefile)
126 cross_tools="$cross_tools $this_script"
127
128 # Grab the name of the target (minus the -headers or -cross in the case of gcc
129 # and binutils in chapter 5)
130 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
131
132 pkg_tarball=$(get_package_tarball_name $name)
133 #--------------------------------------------------------------------#
134 # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
135 #--------------------------------------------------------------------#
136 #
137 # Drop in the name of the target on a new line, and the previous target
138 # as a dependency. Also call the echo_message function.
139 LUSER_wrt_target "${this_script}" "$PREV"
140 #
141 # If $pkg_tarball isn't empty, we've got a package...
142 if [ "$pkg_tarball" != "" ] ; then
143 LUSER_wrt_unpack "$pkg_tarball"
144 fi
145 #
146 LUSER_wrt_RunAsUser "${file}"
147 #
148 [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
149 #
150 # Include a touch of the target name so make can check if it's already been made.
151 wrt_touch
152 #
153 #--------------------------------------------------------------------#
154 # >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
155 #--------------------------------------------------------------------#
156 #
157 # Keep the script file name for Makefile dependencies.
158 PREV=$this_script
159
160 done # for file in ....
161}
162
163
164#-----------------------------#
165cross_tools_Makefiles() { #
166#-----------------------------#
167 echo "${tab_}${GREEN}Processing... ${L_arrow}cross tools ( LUSER ) ${R_arrow}"
168
169 for file in cross-tools/* ; do
170 # Keep the script file name
171 this_script=`basename $file`
172 #
173 # Skip this script...
174 # NOTE.. the book indicated you only needed to install groff or file if the host
175 # had older versions. The packages would be installed in the target directory
176 # and not the host.
177 case $this_script in
178 *cflags* | *variables* | *abi | *toolchain*) # work done in host_prep_Makefiles
179 continue ;;
180 *) ;;
181 esac
182
183 #
184 # Set the dependency for the first target.
185 if [ -z $PREV ] ; then PREV=028-creating-sysfile ; fi
186
187 # First append each name of the script files to a list (this will become
188 # the names of the targets in the Makefile)
189 cross_tools="$cross_tools $this_script"
190
191 # Grab the name of the target (minus the -headers or -cross in the case of gcc
192 # and binutils in chapter 5)
193 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
194 -e 's@-static@@' \
195 -e 's@-final@@' \
196 -e 's@-64@@' \
197 -e 's@-n32@@'`
198 case $name in
199 uclibc*) name="uClibc" ;;
200 esac
201 pkg_tarball=$(get_package_tarball_name $name)
202 #--------------------------------------------------------------------#
203 # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
204 #--------------------------------------------------------------------#
205 #
206 # Drop in the name of the target on a new line, and the previous target
207 # as a dependency. Also call the echo_message function.
208 LUSER_wrt_target "${this_script}" "$PREV"
209 #
210 # If $pkg_tarball isn't empty, we've got a package...
211 if [ "$pkg_tarball" != "" ] ; then
212 LUSER_wrt_unpack "$pkg_tarball"
213 # If using optimizations, write the instructions
214 [[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
215 fi
216 #
217 LUSER_wrt_RunAsUser "${file}"
218 #
219 [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
220 #
221 # Include a touch of the target name so make can check if it's already been made.
222 wrt_touch
223 #
224 #--------------------------------------------------------------------#
225 # >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
226 #--------------------------------------------------------------------#
227 #
228 # Keep the script file name for Makefile dependencies.
229 PREV=$this_script
230
231 done # for file in ....
232}
233
234
235
236#-----------------------------#
237final_system_Makefiles() { #
238#-----------------------------#
239 echo "${tab_}${GREEN}Processing... ${L_arrow}final system ( LUSER ) ${R_arrow}"
240
241 for file in final-system/* ; do
242 # Keep the script file name
243 this_script=`basename $file`
244
245 # Grab the name of the target, strip id number, XXX-script
246 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
247 -e 's@temp-@@' \
248 -e 's@-64bit@@' \
249 -e 's@-64@@' \
250 -e 's@64@@' \
251 -e 's@n32@@'`
252
253 # Find the version of the command files, if it corresponds with the building of
254 # a specific package.
255 pkg_tarball=$(get_package_tarball_name $name)
256
257 # Append each name of the script files to a list (this will become
258 # the names of the targets in the Makefile
259 basicsystem="$basicsystem ${this_script}"
260
261 #--------------------------------------------------------------------#
262 # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
263 #--------------------------------------------------------------------#
264 #
265 # Drop in the name of the target on a new line, and the previous target
266 # as a dependency. Also call the echo_message function.
267 LUSER_wrt_target "${this_script}" "$PREV"
268 #
269 # If $pkg_tarball isn't empty, we've got a package...
270 if [ "$pkg_tarball" != "" ] ; then
271 # Touch timestamp file if installed files logs will be created.
272 # But only for the firt build when running iterative builds.
273 if [ "${INSTALL_LOG}" = "y" ] ; then
274 LUSER_wrt_TouchTimestamp
275 fi
276 LUSER_wrt_unpack "$pkg_tarball"
277 # If using optimizations, write the instructions
278 [[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
279 fi
280 #
281 LUSER_wrt_RunAsUser "${file}"
282 #
283 # Write installed files log and remove the build directory(ies)
284 # except if the package build fails.
285 if [ "$pkg_tarball" != "" ] ; then
286 LUSER_RemoveBuildDirs "${name}"
287 if [ "${INSTALL_LOG}" = "y" ] ; then
288 LUSER_wrt_LogNewFiles "$name"
289 fi
290 fi
291 #
292 # Include a touch of the target name so make can check if it's already been made.
293 wrt_touch
294 #
295 #--------------------------------------------------------------------#
296 # >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
297 #--------------------------------------------------------------------#
298 #
299 # Keep the script file name for Makefile dependencies.
300 PREV=${this_script}
301 done # for file in final-system/* ...
302}
303
304
305
306#-----------------------------#
307bootscripts_Makefiles() { #
308#-----------------------------#
309 echo "${tab_}${GREEN}Processing... ${L_arrow}bootscripts ( LUSER ) ${R_arrow}"
310
311 for file in bootscripts/* ; do
312 # Keep the script file name
313 this_script=`basename $file`
314
315 case $this_script in
316 *console*) continue ;; # Use the files that came with the bootscripts
317 *network*) continue ;; # Manually create these files
318 *) ;;
319 esac
320
321 # First append each name of the script files to a list (this will become
322 # the names of the targets in the Makefile
323 bootscripttools="$bootscripttools $this_script"
324
325 # Grab the name of the target, strip id number, XXX-script
326 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'\
327 -e 's@-64bit@@' \
328 -e 's@-64@@' \
329 -e 's@64@@' \
330 -e 's@n32@@'`
331 case $name in
332 *bootscripts*) name=clfs-embedded-bootscripts ;;
333 esac
334
335 pkg_tarball=$(get_package_tarball_name $name)
336
337 #--------------------------------------------------------------------#
338 # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
339 #--------------------------------------------------------------------#
340 #
341 # Drop in the name of the target on a new line, and the previous target
342 # as a dependency. Also call the echo_message function.
343 LUSER_wrt_target "${this_script}" "$PREV"
344 #
345 # If $pkg_tarball isn't empty, we've got a package...
346 if [ "$pkg_tarball" != "" ] ; then
347 LUSER_wrt_unpack "$pkg_tarball"
348 if [ "${INSTALL_LOG}" = "y" ] ; then
349 LUSER_wrt_TouchTimestamp
350 fi
351 fi
352 #
353 LUSER_wrt_RunAsUser "${file}"
354 #
355 if [ "$pkg_tarball" != "" ] ; then
356 LUSER_RemoveBuildDirs "${name}"
357 if [ "${INSTALL_LOG}" = "y" ] ; then
358 LUSER_wrt_LogNewFiles "$name"
359 fi
360 fi
361 #
362 # Include a touch of the target name so make can check if it's already been made.
363 wrt_touch
364 #
365 #--------------------------------------------------------------------#
366 # >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
367 #--------------------------------------------------------------------#
368 #
369 # Keep the script file name for Makefile dependencies.
370 PREV=$this_script
371
372 done # for file in bootscripts/* ...
373
374}
375
376
377#-----------------------------#
378bootable_Makefiles() { #
379#-----------------------------#
380 echo "${tab_}${GREEN}Processing... ${L_arrow}make bootable ( LUSER ) ${R_arrow}"
381
382 for file in bootable/* ; do
383 # Keep the script file name
384 this_script=`basename $file`
385
386 # A little housekeeping on the scripts
387 case $this_script in
388 *grub | *aboot | *colo | *silo | *arcload | *lilo | *reboot* ) continue ;;
389 *fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
390 *kernel) # if there is no kernel config file do not build the kernel
391 [[ -z $CONFIG ]] && continue
392 # Copy the config file to /sources with a standardized name
393 cp $CONFIG $BUILDDIR/sources/kernel-config
394 ;;
395 esac
396 #
397 # First append each name of the script files to a list (this will become
398 # the names of the targets in the Makefile
399 # NOTE: new makfile format forces the last script, *chowning, into a separate
400 # phase.
401 case ${this_script} in
402 *chowning) chowning=${this_script} ;;
403 *) bootable="$bootable $this_script" ;;
404 esac
405 #
406 # Grab the name of the target, strip id number and misc words.
407 name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' -e 's@-build@@' `
408 case $this_script in
409 *kernel*) name=linux
410 ;;
411 esac
412
413 pkg_tarball=$(get_package_tarball_name $name)
414
415 #--------------------------------------------------------------------#
416 # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
417 #--------------------------------------------------------------------#
418 #
419 # Drop in the name of the target on a new line, and the previous target
420 # as a dependency. Also call the echo_message function.
421 LUSER_wrt_target "${this_script}" "$PREV"
422 #
423 # If $pkg_tarball isn't empty, we've got a package...
424 if [ "$pkg_tarball" != "" ] ; then
425 LUSER_wrt_unpack "$pkg_tarball"
426 if [ "${INSTALL_LOG}" = "y" ] ; then
427 LUSER_wrt_TouchTimestamp
428 fi
429 fi
430 #
431 # Select a script execution method
432 case $this_script in
433 *fstab*) if [[ -n "$FSTAB" ]]; then
434 LUSER_wrt_CopyFstab
435 else
436 LUSER_wrt_RunAsUser "${file}"
437 fi
438 ;;
439 *chowning) wrt_RunAsRoot "${file}"
440 ;;
441 *) LUSER_wrt_RunAsUser "${file}"
442 ;;
443 esac
444 #
445 # Housekeeping...remove any build directory(ies) except if the package build fails.
446 if [ "$pkg_tarball" != "" ] ; then
447 LUSER_RemoveBuildDirs "${name}"
448 if [ "${INSTALL_LOG}" = "y" ] ; then
449 LUSER_wrt_LogNewFiles "$name"
450 fi
451 fi
452 #
453 # Include a touch of the target name so make can check if it's already been made.
454 wrt_touch
455 #
456 #--------------------------------------------------------------------#
457 # >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
458 #--------------------------------------------------------------------#
459 #
460 # Keep the script file name for Makefile dependencies.
461 PREV=$this_script
462
463 done
464
465}
466
467
468#-----------------------------#
469build_Makefile() { # Construct a Makefile from the book scripts
470#-----------------------------#
471 echo "Creating Makefile... ${BOLD}START${OFF}"
472
473 cd $JHALFSDIR/${PROGNAME}-commands
474 # Start with a clean Makefile.tmp file
475 >$MKFILE.tmp
476
477 host_prep_Makefiles
478 [[ "${PLATFORM% -*}" = "WRT" ]] && systemprep_Makefiles # $cross_tools
479 cross_tools_Makefiles # $cross_tools
480 final_system_Makefiles # $basicsystem
481 bootscripts_Makefiles # $bootscripttools
482 bootable_Makefiles # $bootable
483 # Add the CUSTOM_TOOLS targets, if needed
484 [[ "$CUSTOM_TOOLS" = "y" ]] && wrt_CustomTools_target
485
486 # Add a header, some variables and include the function file
487 # to the top of the real Makefile.
488 wrt_Makefile_header
489
490 # Drop in the main target 'all:' and the chapter targets with each sub-target
491 # as a dependency.
492(
493cat << EOF
494
495all: ck_UID mk_SETUP mk_LUSER create-sbu_du-report mk_CUSTOM_TOOLS mk_ROOT
496 @sudo make restore-luser-env
497 @sudo make do-housekeeping
498 @\$(call echo_finished,$VERSION)
499
500ck_UID:
501 @if [ \`id -u\` = "0" ]; then \\
502 echo "--------------------------------------------------"; \\
503 echo "You cannot run this makefile from the root account"; \\
504 echo "--------------------------------------------------"; \\
505 exit 1; \\
506 fi
507
508mk_SETUP:
509 @\$(call echo_SU_request)
510 @sudo make BREAKPOINT=\$(BREAKPOINT) SETUP
511 @touch \$@
512
513mk_LUSER: mk_SETUP
514 @\$(call echo_SULUSER_request)
515 @(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make BREAKPOINT=\$(BREAKPOINT) LUSER" )
516 @touch \$@
517
518mk_CUSTOM_TOOLS: create-sbu_du-report
519 @if [ "\$(ADD_CUSTOM_TOOLS)" = "y" ]; then \\
520 \$(call sh_echo_PHASE,Building CUSTOM_TOOLS); \\
521 (sudo \$(SU_LUSER) "mkdir -p $BUILDDIR$TRACKING_DIR"); \\
522 (sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make BREAKPOINT=\$(BREAKPOINT) CUSTOM_TOOLS"); \\
523 fi;
524 @touch \$@
525
526mk_ROOT:
527 @\$(call echo_SU_request)
528 @echo "$VERSION-embedded - jhalfs build" > clfs-release && \\
529 sudo mv clfs-release \$(MOUNT_PT)/etc
530 @sudo make BREAKPOINT=\$(BREAKPOINT) ROOT
531 @touch \$@
532
533
534SETUP: $host_prep
535LUSER: $cross_tools $basicsystem $bootscripttools $bootable
536CUSTOM_TOOLS: $custom_list
537ROOT: $chowning
538
539
540create-sbu_du-report: mk_LUSER
541 @\$(call echo_message, Building)
542 @if [ "\$(ADD_REPORT)" = "y" ]; then \\
543 ./create-sbu_du-report.sh logs $VERSION; \\
544 \$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report); \\
545 fi;
546 @touch \$@
547
548restore-luser-env:
549 @\$(call echo_message, Building)
550 @if [ -f \$(LUSER_HOME)/.bashrc.XXX ]; then \\
551 mv -f \$(LUSER_HOME)/.bashrc.XXX \$(LUSER_HOME)/.bashrc; \\
552 fi;
553 @if [ -f \$(LUSER_HOME)/.bash_profile.XXX ]; then \\
554 mv \$(LUSER_HOME)/.bash_profile.XXX \$(LUSER_HOME)/.bash_profile; \\
555 fi;
556 @chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bash* && \\
557 touch \$@ && \\
558 echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
559 echo --------------------------------------------------------------------------------\$(WHITE)
560
561do-housekeeping:
562 @-if [ ! -f luser-exist ]; then \\
563 userdel \$(LUSER); \\
564 rm -rf \$(LUSER_HOME); \\
565 fi;
566
567EOF
568) >> $MKFILE
569
570 # Bring over the items from the Makefile.tmp
571 cat $MKFILE.tmp >> $MKFILE
572 rm $MKFILE.tmp
573 echo "Creating Makefile... ${BOLD}DONE${OFF}"
574
575}
576
Note: See TracBrowser for help on using the repository browser.