Skip to content

Instantly share code, notes, and snippets.

@takamii
Created June 13, 2011 17:23
Show Gist options
  • Save takamii/1023237 to your computer and use it in GitHub Desktop.
Save takamii/1023237 to your computer and use it in GitHub Desktop.
既存ファイルの置き換え処理をするprerm。ファイル権限は755に。Localizable.stringsをLocalizable.strings.modに戻し、退避しておいたLocalizable.strings.bakをLocalizable.stringsに戻す。
#!/bin/sh
DIR="/Library/Activator/ja.lproj"
FILE="Localizable.strings"
mv ${DIR}/${FILE} ${DIR}/${FILE}.mod
if [ -e ${DIR}/${FILE}.bak ]; then
mv ${DIR}/${FILE}.bak ${DIR}/${FILE}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment