Skip to content

Instantly share code, notes, and snippets.

@takamii
Created June 13, 2011 17:20
Show Gist options
  • Save takamii/1023231 to your computer and use it in GitHub Desktop.
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に置き換える。
#!/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