mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
purge-stale-projects.sh: Attempt to clean projects before purge
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8e098ce9ab
commit
d17eccc0eb
1 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,9 @@ for p in $local_cvs_proj; do
|
||||||
echo $remote_cvs_proj | grep -q "\(^\| \)$p\($\| \)" && continue
|
echo $remote_cvs_proj | grep -q "\(^\| \)$p\($\| \)" && continue
|
||||||
n=purged/cvs/$date/$p
|
n=purged/cvs/$date/$p
|
||||||
mkdir -p `dirname $n`
|
mkdir -p `dirname $n`
|
||||||
echo moving stale cvs project $p to $n
|
echo "--------------- moving stale cvs project $p to $n"
|
||||||
|
if ! make -C $p distclean; then echo "distclean failed, ignoring"; fi
|
||||||
|
if ! make -C $p clean; then echo "clean failed, ignoring"; fi
|
||||||
mv $p $n
|
mv $p $n
|
||||||
purged="$purged $p"
|
purged="$purged $p"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue