diff options
author | Jay Freeman <saurik@saurik.com> | 2008-01-01 05:58:43 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-01-01 05:58:43 +0000 |
commit | ea2670c18699e514ee1d65dfd35ad22c296a74e7 (patch) | |
tree | 6826a5266d78c22210c194772a8daed06ef0a19c /data/diskdev-cmds/make.sh | |
parent | a45e85d54e8df7a333946cc52fec519fc6aa4d87 (diff) |
Initial commit.
git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/diskdev-cmds/make.sh')
-rw-r--r-- | data/diskdev-cmds/make.sh | 20 |
1 files changed, 20 insertions, 0 deletions
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 |