-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_user.sh
More file actions
executable file
·46 lines (39 loc) · 891 Bytes
/
Copy pathinstall_user.sh
File metadata and controls
executable file
·46 lines (39 loc) · 891 Bytes
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
#!/bin/bash
#
# script to initially copy files to user direcotry ~/picoCosmo/
#
# -----------------------------------------
if [ "$1" != "" ]; then
USERDIR=$1
else
USERDIR="picoCosmo"
fi
# -----------------------------------------
DIR=$HOME/$USERDIR
echo "copying files to "$DIR
mkdir -p $DIR
if [ -d $DIR ]; then
# enter here, if direcotry exists
#
# create desktop icon
# cp -auv *.desktop $HOME/Desktop
# copy documentation
mkdir -p $DIR/doc
cp -auv doc/Anleitung.pdf $DIR/doc/
cp -auv doc/README_de.pdf $DIR
cp -auv doc/*.html $DIR/doc/
#
#copy python code
cp -auv CosmoGui.py $DIR
cp -auv runCosmo.py $DIR
cp -auv images $DIR
#
#copy config examples
cp -auv config/ $DIR
cp -auv *.daq $DIR
#
# for Raspberry pi
# create desktop icon
#!cp -auv libs/RasPi/*.desktop $HOME/Desktop
#!chmod a+x $HOME/Desktop/*.desktop
fi