Mercurial > forge
view cvsdir.sh @ 2665:e25f9a6bec9e octave-forge
Update index for new functions in octave
author | adb014 |
---|---|
date | Thu, 12 Oct 2006 20:23:49 +0000 |
parents | 13faa34b3134 |
children |
line wrap: on
line source
#! /bin/bash # File: cvsdir.sh # Description: Save and restore CVS dirs under current dir. This is # useful for genrating a Debian package without the CVS # administrative directories, but getting them restored later. # Author: Rafael Laboissi�re <rafael@icp.inpg.fr> # Created on: Mon Feb 12 18:06:37 CET 2001 # Last modified on: Mon Feb 12 18:07:48 CET 2001 # $Id$ # 2001-10-22 Paul Kienzle # * remove the cvstar directory after restore cvsdirs=`find . -type d -and -name CVS` cvstar=../cvs.tar case "$1" in save) if [ -n "$cvsdirs" ] ; then tar cf $cvstar $cvsdirs rm -rf $cvsdirs else echo "W: No CVS dirs under ." 1>&2 fi ;; restore) if [ -f $cvstar ] ; then tar xf $cvstar rm -f $cvstar else echo "E: File $cvstar not found" 1>&2 fi ;; *) cat 1>&2 <<EOF Usage $0 <save|restore> EOF ;; esac