forked from rdotnet/rClr
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcleanup.win
55 lines (49 loc) · 1.34 KB
/
cleanup.win
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if ["$RCLR_SRC_DIR" = ""]
then
RCLR_SRC_DIR=./src
if [ ! -e ${RCLR_SRC_DIR} ]
then
echo "error: no suitable package src dir found - last tried ${RCLR_SRC_DIR}"
CURDIR=`pwd`
echo "Current directory (pwd) is $CURDIR"
exit 1
fi
fi
WINMAKE_FILE=$RCLR_SRC_DIR/Makefile.win
MAKEVARS_FILE=$RCLR_SRC_DIR/Makevars
RCLR_PROPS_FILE=$RCLR_SRC_DIR/rClr.props
if [ -e $MAKEVARS_FILE ]
then
echo "note: removing existing $MAKEVARS_FILE"
rm $MAKEVARS_FILE
fi
if [ -e $WINMAKE_FILE ]
then
echo "note: removing existing $WINMAKE_FILE"
rm $WINMAKE_FILE
fi
if [ -e $RCLR_PROPS_FILE ]
then
echo "note: removing existing $RCLR_PROPS_FILE"
rm $RCLR_PROPS_FILE
fi
if [ -e ${RCLR_SRC_DIR}/../inst/libs ]
then
rm -rf $RCLR_SRC_DIR/../inst/libs/*
fi
rm -f $RCLR_SRC_DIR/rClr.dll
rm -f $RCLR_SRC_DIR/rClrMono*
rm -f $RCLR_SRC_DIR/rClrMs*
rm -rf $RCLR_SRC_DIR/x64
rm -rf $RCLR_SRC_DIR/Debug
rm -rf $RCLR_SRC_DIR/MonoInstall
rm -rf $RCLR_SRC_DIR/MonoInstallDebug
rm -rf $RCLR_SRC_DIR/Release
rm -rf $RCLR_SRC_DIR/RDotNetDataConverter/obj
rm -rf $RCLR_SRC_DIR/RDotNetDataConverter/DummyApp/bin/
rm -rf $RCLR_SRC_DIR/RDotNetDataConverter/DummyApp/obj/
rm -rf $RCLR_SRC_DIR/ClrFacade/obj
rm -rf $RCLR_SRC_DIR/rdotnet/RDotNet.NativeLibrary/bin
rm -rf $RCLR_SRC_DIR/rdotnet/RDotNet.NativeLibrary/obj
rm -rf $RCLR_SRC_DIR/rdotnet/R.NET/bin
rm -rf $RCLR_SRC_DIR/rdotnet/R.NET/obj