Changeset 16

Show
Ignore:
Timestamp:
07/13/05 20:53:29 (3 years ago)
Author:
athomas
Message:
  • Renamed local.sh to custom-config.sh, made post_install smarter.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • archabs/trunk/custom-config/install

    r15 r16  
    33post_install() { 
    44        grep -q '# Local modifications' etc/pacman.conf || { 
    5                 sed -ie 's,^\(HoldPkg.*\),\1\n# Local modifications\nNoUpgrade   = etc/pacman.conf etc/issue etc/inputrc etc/vimrc etc/mail/exim.conf /etc/yp.conf\n,' etc/pacman.conf 
    6                 echo "Added custom HoldPkg to /etc/pacman.conf" 
     5                sed -ie 's:^\(\[options\]\):\1\n# Local modifications (custom-config, do not remove)\nNoUpgrade   = etc/abs/abs.confetc/syslog-ng/syslog-ng.conf etc/pacman.conf etc/issue etc/inputrc etc/vimrc etc/mail/exim.conf /etc/yp.conf:' etc/pacman.conf 
     6                echo "Added custom NoUpgrade entries to /etc/pacman.conf" 
    77        } 
    88        grep -q 'Arch Linux' etc/issue && { 
     
    1313} 
    1414 
     15post_upgrade() { 
     16        post_install "$@" 
     17} 
     18 
    1519op=$1 
    1620shift 
  • archabs/trunk/custom-config/PKGBUILD

    r15 r16  
    11pkgname=custom-config 
    22pkgver=1.0 
    3 pkgrel=3 
     3pkgrel=4 
    44pkgdesc="Custom configuration files" 
    55url="http://swapoff.org" 
     
    99conflicts=() 
    1010replaces=() 
    11 backup=('etc/vimrc' 'etc/inputrc' 'etc/DIR_COLORS' 'etc/profile.d/^local.sh') 
     11backup=('etc/vimrc' 'etc/inputrc' 'etc/DIR_COLORS' 'etc/profile.d/^custom-config.sh') 
    1212install=install 
    13 source=(vimfiles.tar.bz2 vimrc inputrc ^local.sh DIR_COLORS) 
     13source=(vimfiles.tar.bz2 vimrc inputrc ^custom-config.sh DIR_COLORS) 
    1414md5sums=() 
    1515