17 lines
387 B
Bash
Executable File
17 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
cvs update -dPA
|
|
make clean
|
|
make prep
|
|
if [ -f 'sources' ] ; then
|
|
folder=`sed -rn 's/^[a-z0-9]{32}\s+(.+)\.(tar|t)\.?(gz|xz|bz|bz2)*$/\1/p' sources`
|
|
oldy="$folder.old"
|
|
if [ -d "$folder" ] ; then
|
|
echo "$folder exist"
|
|
if [ -d $oldy ] ; then
|
|
rm -rf $oldy && echo "removing $oldy"
|
|
fi
|
|
cp -a $folder $oldy && echo "creating $oldy as fresh copy of $folder"
|
|
fi
|
|
fi
|
|
|