#!/bin/sh # # Copyright (c) 2005-2006 The ABINIT Group (Yann Pouillon) # All rights reserved. # # This file is part of the ABINIT software package. For license information, # please see the COPYING file in the top-level directory of the ABINIT source # distribution. # # # IMPORTANT NOTE # # For maintainer use only ! # # PLEASE DO NOT EDIT THIS FILE, AS IT COULD CAUSE A SERIOUS LOSS OF DATA. # YOU HAVE BEEN WARNED ! # # Check that we are in the right directory if test ! -s "./configure.ac" -o ! -s "src/main/abinit.F90"; then echo "clean-source-tree: Cowardly refusing to remove something from here!" exit 1 fi start_time=`date '+%s'` cat < /dev/null 2>&1) (cd lib/nqxc && make -i -f nqxc.mk clean > /dev/null 2>&1) (cd lib/xmlf90 && make -i -f xmlf90.mk clean > /dev/null 2>&1) echo "done." # Remove obsolete files echo -n " * Removing obsolete files..." rm -f \ config/m4/detect-libs.m4 \ config/m4/env.m4 \ config/m4/extlibs.m4 \ config/m4/optflags_dirs.m4 \ src/03ionetcdf/*_ncdf.F90 echo "done." # Remove GNU Arch garbage echo -n " * Removing GNU Arch garbage..." find . -depth -name ',,*' -a ! -path '*{arch}*' -exec rm -rf {} \; find . -name '*.orig' -exec rm {} \; find . -name '*.rej' -exec rm {} \; echo "done." end_time=`date '+%s'` cat <&1` if test "${lint}" = ""; then echo "everything OK." else echo "not OK." echo " => You should have a look at this." fi cat <