1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/bin/bash clean() { rm -rf $SRCDIR/*.zip rm -rf $SRCDIR/*.tar.gz } build() { echo "done" } install() { mkdir -p $SRCDIR/package/TYPICAL.package.${TARGET_OS}/data mkdir -p $SRCDIR/package/MINIMAL.package.${TARGET_OS}/data } [ "$1" = "clean" ] && clean [ "$1" = "build" ] && build [ "$1" = "install" ] && install exit 0