From 910283bcacd869d4b8cfd655f00d5d87ceb3cf72 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 8 Apr 2009 21:43:17 +0000 Subject: Upgraded diskdev-cmds and shell-cmds, as they are somewhat fundamental. git-svn-id: http://svn.telesphoreo.org/trunk@567 514c082c-b64e-11dc-b46d-3d985efe055d --- data/diskdev-cmds/make.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'data/diskdev-cmds/make.sh') diff --git a/data/diskdev-cmds/make.sh b/data/diskdev-cmds/make.sh index 5c1c8d6c5..1b9b8cf73 100644 --- a/data/diskdev-cmds/make.sh +++ b/data/diskdev-cmds/make.sh @@ -3,20 +3,25 @@ pkg:setup cd disklib rm -f mntopts.h getmntopts.c -${PKG_TARG}-gcc -c *.c +${PKG_TARG}-gcc -fno-common -c *.c ${PKG_TARG}-ar -r libdisk.a *.o cd .. -for tproj in !(fstyp|dev_mkdb|dump|fsck_hfs|fuser|mount_hfs|restore|quotacheck|ufs).tproj; do +for tproj in !(fstyp|fsck_hfs|fuser|mount_portal|mount_swapfs|mount_umap).tproj; do tproj=$(basename "${tproj}" .tproj) echo ${tproj} extra= - if [[ ${tproj} = mount_cd9660 ]]; then + + if [[ ${tproj} = restore ]]; then + extra="${extra} -DRRESTORE" + fi + + if [[ ${tproj} = mount_cd9660 || ${tproj} = mount_hfs ]]; then extra="${extra} -framework IOKit" fi - if [[ ${tproj} = mount_cd9660 || ${tproj} = newfs_hfs ]]; then + if [[ ${tproj} = mount_cd9660 || ${tproj} = mount_hfs || ${tproj} = newfs_hfs ]]; then extra="${extra} -framework CoreFoundation" fi @@ -34,7 +39,8 @@ chmod u+s umount quota pkg: mkdir -p /usr/bin /usr/libexec /usr/sbin /sbin +# XXX: mt ufs pkg: cp -a quota /usr/bin -pkg: cp -a vsdbutil repquota fdisk edquota quot quotaon /usr/sbin +pkg: cp -a dev_mkdb edquota fdisk quot quotaon repquota vsdbutil /usr/sbin pkg: cp -a vndevice /usr/libexec -pkg: cp -a clri dumpfs tunefs umount @(fsck|fstyp|mount|newfs)?(_*([a-z0-9])) /sbin +pkg: cp -a clri dump dumpfs quotacheck restore tunefs umount @(fsck|fstyp|mount|newfs)?(_*([a-z0-9])) /sbin -- cgit v1.2.3