summaryrefslogtreecommitdiff
path: root/data/diskdev-cmds/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/diskdev-cmds/make.sh')
-rw-r--r--data/diskdev-cmds/make.sh20
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