Created
June 13, 2011 17:20
-
-
Save takamii/1023231 to your computer and use it in GitHub Desktop.
既存ファイルの置き換え処理をするpostinst。ファイル権限は755に。元からあるLocalizable.stringsをLocalizable.strings.bakにリネームし、debで用意したLocalizable.strings.modをLocalizable.stringsに置き換える。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIR="/Library/Activator/ja.lproj" | |
FILE="Localizable.strings" | |
if [ -e ${DIR}/${FILE} ] | |
then | |
mv ${DIR}/${FILE} ${DIR}/${FILE}.bak | |
fi | |
mv ${DIR}/${FILE}.mod ${DIR}/${FILE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment