-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall_ehutchens.do
36 lines (26 loc) · 1.12 KB
/
uninstall_ehutchens.do
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
*! version 1.0.0, Francisco Ceron, 09Nov2024
*! uninstall_ehutchens: program to unistall ehutchens program, the extended hutchens 'square root' segregation index (additively decomposable), with supergroup option, stored matrices, save new dataset and bootstrap options
program uninstall_ehutchens
local path = c(sysdir_plus) + "e/ehutchens.ado"
if (fileexists("`path'")) {
display "Uninstalling ehutchens..."
erase "`path'"
local helpfile = c(sysdir_plus) + "e/ehutchens.sthlp"
if (fileexists("`helpfile'")) {
erase "`helpfile'"
}
display "ehutchens package has been successfully uninstalled."
}
else {
display as error "ehutchens package not found in the PLUS directory."
}
local path = c(sysdir_plus) + "h/hu_int.ado"
if (fileexists("`path'")) {
display "Uninstalling hu_int..."
erase "`path'"
}
display "hu_int package has been successfully uninstalled."
else {
display as error "hu_int package not found in the PLUS directory."
}
end