-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean_vrpt_all.sh
executable file
·40 lines (26 loc) · 980 Bytes
/
clean_vrpt_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
source ./scripts/env.sh
echo
echo "Do you want to clean? (y [n]) "
read ans
case $ans in
y*|Y*)
;;
*)
echo skipped.;;
esac
if [ `which DictToSdb` ] && [ `which Dict2XMLSchema` ] && [ `which Dict2XMLSchema` ]; then
( cd schema; ./update_schema.sh )
fi
rm -f *_list *_total url_mirror
rm -rf extlibs
rm -f $EXT_PDBML_XSL $MERGE_PDBML_INFO_XSL $VRPTML2RDF_XSL
WORK_DIR=.
rm -rf $WORK_DIR/$PDBML_EXT $WORK_DIR/$VALID_INFO_ALT $WORK_DIR/$XML_VALID $WORK_DIR/$RDF_VALID $WORK_DIR/$MMCIF_VALID $WORK_DIR/$XML_VALID_ALT $WORK_DIR/$RDF_VALID_ALT $WORK_DIR/$MMCIF_VALID_ALT
for dir in chk_sum_*; do
if [ $dir != "chk_sum_pdbml_cc" ] && [ $dir != "chk_sum_pdbml_noatom" ] ; then
cd $dir; find . -type f | xargs rm -f; cd ..; rmdir $dir
fi
done
WORK_DIR=test
rm -rf $WORK_DIR/$PDBML_EXT $WORK_DIR/$VALID_INFO_ALT $WORK_DIR/$XML_VALID $WORK_DIR/$RDF_VALID $WORK_DIR/$MMCIF_VALID $WORK_DIR/$XML_VALID_ALT $WORK_DIR/$RDF_VALID_ALT $WORK_DIR/$MMCIF_VALID_ALT