Ticket #12082: 12082_extcode_cp_pr.patch

File 12082_extcode_cp_pr.patch, 526 bytes (added by jdemeyer, 10 years ago)
  • spkg-install

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1322242502 -3600
    # Node ID c96056e2ab62081571119fc37dfd2f5d4710e55b
    # Parent  68732f0434a2ad7dff729b0b2e8d826c293a27e9
    Preserve timestamp upon spkg installation
    
    diff --git a/spkg-install b/spkg-install
    a b  
    1818if [ ! -d "$DIR" ]; then
    1919   # Brand new install.
    2020   mkdir "$DIR"
    21    cp -r * .hg* "$DIR"/
     21   cp -pR * .hg* "$DIR"/ || exit $?
    2222else
    2323   # Doing an upgrade, so merge changes.
    2424   cd "$DIR"