-
Notifications
You must be signed in to change notification settings - Fork 0
/
import.sh
57 lines (36 loc) · 890 Bytes
/
import.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
copia_scripts()
#copia os shell scripts do diretorio passado como argumento
{
echo $1
for arquivo in `ls $1`
do
x=10
tipo=`file $1/$arquivo`
if (echo $tipo | grep 'shell script')
then
cp --parents $1/$arquivo trunk
echo $arquivo
fi
done
}
######################################
mkdir trunk
# Copia configurações dos menus
cp --recursive --parents /etc/xdg trunk
# Copia os menus
cp --recursive --parents /usr/share/desktop-directories trunk
# Copia as entradas de menus dos programas
cp --recursive --parents /usr/share/applications trunk
# Copia os atalhos do desktop
cp --recursive --parents /root/Choices/ROX-Filer trunk
# Copia a documentação
cp --recursive --parents /usr/share/doc trunk
#TODO:
#
# Copiar os arquivos de outros programas
#
# Copia os shell scripts
# (Lento!)
copia_scripts '/usr/bin'
copia_scripts '/usr/sbin'