|
@@ -27,17 +27,17 @@ Actions:
|
|
|
|
|
|
For example,
|
|
|
* make a clean/plain build environment on the current archtecture:
|
|
|
-$(basename $0) --clean --build
|
|
|
+$(basename $0) clean build
|
|
|
* build rpms from the specified source rpm:
|
|
|
-$(basename $0) --build-rpm [src.rpm]
|
|
|
+$(basename $0) build-rpm [src.rpm]
|
|
|
* make a plain build environment for Vine Linux 4.2:
|
|
|
-$(basename $0) --version 4.2 --clean --build
|
|
|
+$(basename $0) --version 4.2 clean build
|
|
|
* make a i386 chroot on x86_64:
|
|
|
-$(basename $0) --arch i386 --clean --build
|
|
|
-* build a kernel package with target i686
|
|
|
-$(basename $0) --target i686 --build-rpm [kernel src.rpm]
|
|
|
+$(basename $0) --arch i386 clean build
|
|
|
+* build a kernel package with target i686:
|
|
|
+$(basename $0) --target i686 build-rpm [kernel src.rpm]
|
|
|
* build a compat32 package:
|
|
|
-$(basename $0) --arch i386 --with-compat32 --build-rpm [src.rpm]
|
|
|
+$(basename $0) --arch i386 --with-compat32 build-rpm [src.rpm]
|
|
|
$(/usr/sbin/vbootstrap | sed -e s/^Usage:.*// -e s/^E:.*//)
|
|
|
EOF
|
|
|
}
|
|
@@ -416,10 +416,11 @@ apt-get-update(){
|
|
|
|
|
|
## mount-chroot {|--umount} [file system|name]
|
|
|
## support file systems: /home /tmp /sys /proc /dev/shm /dev/pts /dev
|
|
|
-## support name: vfs chache_dir
|
|
|
+## support name: vfs archives_dir
|
|
|
## NOTE: /tmp needs for applications which use X
|
|
|
## vfs is virtual file systems
|
|
|
-## archives_dir is ${EXTERNAL_ARCHIVES_DIR} to ${ARCHIVES_DIR}
|
|
|
+## archives_dir uses to mount ${EXTERNAL_ARCHIVES_DIR} to ${ARCHIVES_DIR}
|
|
|
+## unionfs_dir covers ${BUILD_ROOT} with unionfs
|
|
|
mount-chroot(){
|
|
|
if [ "$1" = "--umount" ]; then
|
|
|
mount-chroot-umount $2 || return 1
|
|
@@ -566,9 +567,9 @@ EOF
|
|
|
Clean(){
|
|
|
setup-vbootstrap
|
|
|
|
|
|
- # output end-of-line in $VBUILDER_LOG
|
|
|
- [ -f $VBUILDER_LOG ] && write-vbuilder-log ${HRULE}
|
|
|
- Show-Info
|
|
|
+ # # output end-of-line in $VBUILDER_LOG
|
|
|
+ # [ -f $VBUILDER_LOG ] && write-vbuilder-log ${HRULE}
|
|
|
+ # Show-Info
|
|
|
|
|
|
# mount-chroot --umount /home
|
|
|
# mount-chroot --umount /tmp
|