-
Notifications
You must be signed in to change notification settings - Fork 28
/
cleanup
executable file
·37 lines (33 loc) · 961 Bytes
/
cleanup
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
#!/bin/sh
# TODO: can cleanup.win just call clean (avoid duplications)
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
MAKEVARS_FILE=$RCLR_SRC_DIR/Makevars
if [ -e $MAKEVARS_FILE ]
then
echo "note: removing existing $MAKEVARS_FILE"
rm $MAKEVARS_FILE
fi
rm -f $RCLR_SRC_DIR/*.o
rm -f $RCLR_SRC_DIR/*.rds
rm -f $RCLR_SRC_DIR/rClr.dll
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/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