-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinstall
executable file
·20 lines (16 loc) · 907 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
./compile_everything
DIST_DIR=`python -c 'import sys; print filter(lambda x: "dist-packages" in x, sys.path)[0]'`
echo -en "\n\nroot => "
su -c "cp -dRuv src/pole $DIST_DIR/
cp -dRuv compiled/*.pyc compiled/*.so $DIST_DIR/pole/
for language in `ls po/locale`; do
mkdir -p /usr/local/share/locale/\$language/LC_MESSAGES
cp -dRuv po/locale/\$language/LC_MESSAGES/pole.mo /usr/local/share/locale/\$language/LC_MESSAGES/
done
cp -dRuv gladepy/gladepy.py /usr/local/bin/
mkdir -p /usr/local/share/pole/gladepy
cp -dRuv gladepy/.gladepy.conf gladepy/glade-code-generator /usr/local/share/pole/gladepy
mkdir -p /usr/local/share/pole/glade
cp -dRuv gladepy/patch_glade-3_3.6.7/*.deb gladepy/patch_glade-3_3.6.7/*.patch gladepy/patch_glade-3_3.6.7/*.txt /usr/local/share/pole/glade
cp -dRuv NFe /usr/local/share/pole"