unzip 6.0 で Shift_JIS などの日本語ファイル名を含む zipファイルを展開する為の patch です。
Ubuntu に入っていた unzip 5.52 用のpatchを移植、改変したものです。オリジナルの patch はこちら:
http://archive.ubuntulinux.jp/ubuntu-ja/intrepid-ja/unzip_5.52-11ubuntu1.1ja1.diff.gz
| #!/bin/bash | |
| # Script to backup git repo to S3 | |
| # Set bucket, dir, password and account to use for the backup. I keep mine in local env vars | |
| # These are set by localrc which lives on an encrypted home directory and is executed by my bashrc | |
| bucket=$GITHUB_BACKUP_BUCKET | |
| dir=$GITHUB_BACKUP_DIR | |
| password=$GITHUB_BACKUP_PASSWORD | |
| account=$GITHUB_ACCOUNT |
| bin | |
| include | |
| lib | |
| local | |
| *.swp | |
| *.pyc | |
| #!/usr/local/bin/python | |
| """Replacement for htpasswd""" | |
| # Original author: Eli Carter | |
| import os | |
| import sys | |
| import random | |
| from optparse import OptionParser | |
| # We need a crypt module, but Windows doesn't have one by default. Try to find |
| """Usage: python matchcolors.py good.jpg bad.jpg save-corrected-as.jpg""" | |
| from scipy.misc import imread, imsave | |
| from scipy import mean, interp, ravel, array | |
| from itertools import izip | |
| import sys | |
| def mkcurve(chan1,chan2): | |
| "Calculate channel curve by averaging target values." | |
| fst = lambda p: p[0] |
unzip 6.0 で Shift_JIS などの日本語ファイル名を含む zipファイルを展開する為の patch です。
Ubuntu に入っていた unzip 5.52 用のpatchを移植、改変したものです。オリジナルの patch はこちら:
http://archive.ubuntulinux.jp/ubuntu-ja/intrepid-ja/unzip_5.52-11ubuntu1.1ja1.diff.gz