This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/dist-gpc.sh
2005-11-26 01:29:49 +00:00

16 lines
321 B
Bash
Executable File

#!/bin/sh
# Create a archive 'gpc*.zip' with configuration files examples.
date=`date +%Y%m%d`
shortdate=`echo ${date} | sed s/^...//`
shortname=../gpc${shortdate}.zip
name=../gpc115-${date}.zip
dir=cfgs
if [ -f ${name} ] ; then rm $name ; fi
find ${dir} | grep -v CVS | zip -9 -@ -X ${name}
cp ${name} ${shortname}