u-aizu / bekobrew

The userspace package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bekobrew: eRuby によるソースコードの埋め込みをやめる

sh19910711 opened this issue · comments

概要

find コマンドで検索して、source コマンドで読み込みつつ、ラッパー的な関数を eval コマンドで定義するような方向に修正します。

修正

  popd

  rm -rf ${tmpdir}
}

makepkg $@

makepkg $@ にあたる部分は、bekobrew.sh の方に任せます。

for f in `find`; do
  source ${f}
  eval "function _beko_${f}() { ${f}; }"
done

# サブコマンド呼び出し
_beko_$@
  • eRuby の利用はバージョン文字列の埋め込みに限定します