Skip to content

Instantly share code, notes, and snippets.

View magnolia-k's full-sized avatar

Magnolia.K magnolia-k

View GitHub Profile
#!perl
use strict;
use warnings;
use IPC::Open3;
use Socket;
use IO::Handle;
use IO::Poll;
@magnolia-k
magnolia-k / Lib::Build.md
Last active August 29, 2015 13:57
Lib::Buildのアイディア整理
  • Lib::Build - Yet another shared library package manager
  • PerlベースのDSLでインストール条件を定義
  • 指定したディレクトリにまとめてインストール
  • シンボリック方式ではなく、全てまとめてインストール
  • バージョンアップ時は、全て再インストール(頻繁にライブラリのバージョンを上げるとは思えないので
  • インストール済みのソフトウェアの一覧は、インストール先のディレクトリに保存しておく。
  • 新しいバージョンがリリースされているかチェックを行う。
#!/bin/sh
# setup shellscript for Stylistics
STYLISTICS_URL=https://github.com/magnolia-k/Stylistics/archive/master.zip
STYLISTICS_DIR=/opt/Stylistics/
# check env
if [ ! `which git` ]; then
echo "git isn't installed"
@magnolia-k
magnolia-k / plbld
Created August 24, 2013 04:56
simple perl build tool
#!/usr/bin/perl
use strict;
use warnings;
use autodie;
use File::Temp;
use File::Fetch;
use File::Path qw/make_path/;