summaryrefslogtreecommitdiff
path: root/data/diskdev-cmds/make.sh
blob: 469b34568e6c3d2ab679c7d0943dade7c96ae716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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