Source

p5-moosex-semantic / par-package.sh

1
2
3
4
5
6
7
8
#!/bin/zsh
MODULES=$(grep '^package' lib/**/*pm|grep -o '[^ ]\+$' |grep -o '[^;]\+')
# echo $MODULES
MODULE_OPT=""
for mod in $(echo $MODULES);do
    MODULE_OPT="$MODULE_OPT -M $mod"
done
echo $MODULE_OPT