rizin/libr/fs/p/makeplugin.sh
pancake 08e37d54ab * Added r_fs support for the following filesystems:
fat, ntfs, cpio, tar, hfs, hfsplus, udf, iso9660,
  reiserfs, ufs, ufs2, xfs and jfs
* Added vapi files for r_fs
2011-01-14 09:45:33 +01:00

11 lines
275 B
Bash
Executable file

#!/bin/sh
# TODO: btrfs does not have READ hook
# TODO: cpio | tarfs
if [ -z "$1" ]; then
echo "Use: makeplugin.sh [newplugname]"
exit 1
fi
U=$(echo $1 | tr '[a-z]' '[A-Z]')
sed -e s,fat,$1,g -e s,FAT,$U,g fat.mk > $1.mk
sed -e s,fat,$1,g -e s,FAT,$U,g fs_fat.c > fs_$1.c