updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / ion-3-xft / ion-3.install
bloba162ff5f0801a1f2ceaf45ea102b8921eed4ce95
1 #!/bin/sh
3 post_install() {
4 # The date below is automatically replaced by the PKGBUILD.
5 _pkgdate='{year=2009, month=01, day=10}'
6 # We check if the package is possibly outdated.
7 _pkgold=`lua -e "pkgdate=os.time($_pkgdate);
8 print(os.time() >= (pkgdate + 28*24*3600));"`
9 if [ "$_pkgold" = "true" ]; then
10 cat << EOF
11 PLEASE NOTE:
12 ------------------------------------------------------------------------
13 This package is older than 28 days, so it may not be the latest version
14 of Ion-3. The author does not support old and/or obsoleted versions.
15 Please send any bug reports to the package maintainer, not the author.
16 ------------------------------------------------------------------------
17 Please read the message above and press ENTER to continue...
18 EOF
19 read
23 post_upgrade() {
24 post_install
27 op=$1
28 shift
29 [ "$(type -t "$op")" = "function" ] && $op "$@"