1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

プリント基板を発注するときに役立つスクリプト

Last updated at Posted at 2017-03-07

Eagleから出力したガーバーデータをまとめて圧縮

投稿するほどのものでもないが急いで作業してるとプロジェクトディレクトリがごちゃるので、こんな感じで圧縮する。
*EAGLEから出力されたガーバーデーター想定です。中国の工場に発注する場合は適当に拡張子を変えればいいだけ。

generate-pban.sh

echo "packing all gerber files to zip!"

mkdir $1
cp *.cmp *.gpi *.plc *.sol *.stc *.sts *.out $1/

zip $1.zip $1/*
echo "packing DONE!"

リンク
# 実行権限を与える
chmod a+x generate-pban.sh

# コマンド検索パスに保存.例えば
sudo ln -s generate-pban.sh /usr/local/bin/generate-pban

# 確認
which generate-pban

使い方

$ generate-pban {$project_name}

他にもちょくちょく出てきそうなので更新していく

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?