We made it possible. Next, we'll make it beautiful.
Suffering-oriented programming
- 柔軟性向上
- 予想以上に複雑な使い方をしているケースが多かったので、設定ファイルも複雑化して対応する
We made it possible. Next, we'll make it beautiful.
Suffering-oriented programming
#!/usr/bin/ruby | |
# vim:set fileencoding=utf-8 : | |
require 'shellwords' | |
ARGF.each do | |
|line| | |
line.chomp! | |
line.sub!(/\A.+?;/, '') rescue next | |
next unless m = line.match(/\Acd\s+(~?\/.*)/) |
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
#!/bin/bash | |
export LANG=C | |
for service in $(/sbin/chkconfig --list | grep 3:on | awk '{ print $1 }') | |
do | |
while : | |
do | |
echo -n "disable $service ?: " | |
read answer | |
case $answer in | |
Y|y) |