From ea2670c18699e514ee1d65dfd35ad22c296a74e7 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Tue, 1 Jan 2008 05:58:43 +0000 Subject: Initial commit. git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d --- data/diskdev-cmds/make.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/diskdev-cmds/make.sh (limited to 'data/diskdev-cmds/make.sh') diff --git a/data/diskdev-cmds/make.sh b/data/diskdev-cmds/make.sh new file mode 100644 index 000000000..469b34568 --- /dev/null +++ b/data/diskdev-cmds/make.sh @@ -0,0 +1,20 @@ +shopt -s extglob +tar -zxvf "${PKG_DATA}/diskdev_cmds-419.tar.gz" +cd diskdev_cmds-419 +cd disklib +rm -f mntopts.h getmntopts.c +arm-apple-darwin-gcc -c *.c +arm-apple-darwin-ar -r libdisk.a *.o +cd .. +for tproj in !(fstyp|dev_mkdb|dump|fsck_hfs|fuser|mount_hfs|restore|quotacheck|ufs).tproj; do + tproj=$(basename "${tproj}" .tproj) + echo ${tproj} + arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -framework IOKit -framework CoreFoundation -lutil + pkg:usrbin "${tproj}" +done +cd fstyp.tproj +for c in *.c; do + bin=$(basename "${c}" .c) + arm-apple-darwin-gcc -o "${bin}" "${c}" + pkg:usrbin "${bin}" +done -- cgit v1.2.3