-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathcp2elpa.sh
executable file
·39 lines (29 loc) · 1.08 KB
/
cp2elpa.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
#!/bin/bash
# This allows the configuration of the packages path as follows:
# - PACKAGE_USER_DIR=~/.local/state/emacs/elpa .cp2elpa.sh
# - PACKAGE_USER_DIR=~/.emacs.d/.local/packages .cp2elpa.sh
: ${PACKAGE_USER_DIR:=~/.emacs.d/elpa/*/*/}
cd `dirname $0`
rm -rf ${PACKAGE_USER_DIR}/ac-php-20*/*.elc
rm -rf ${PACKAGE_USER_DIR}/ac-php-core-20*/*.elc
rm -rf ${PACKAGE_USER_DIR}/company-php-20*/*.elc
cp -rf \
ac-php-core.el \
phpctags \
ac-php-comm-tags-data.* \
helm-ac-php-apropros.el \
${PACKAGE_USER_DIR}/ac-php-core-20*/
cp -rf ac-php.el ${PACKAGE_USER_DIR}/ac-php-20*/
cp -rf company-php.el ${PACKAGE_USER_DIR}/company-php-20*/
chmod a-w ${PACKAGE_USER_DIR}/ac-php-core-20*/*.el
rm -rf ${PACKAGE_USER_DIR}/ac-php-20*/*.elc
rm -rf ${PACKAGE_USER_DIR}/ac-php-core-20*/*.elc
rm -rf ${PACKAGE_USER_DIR}/company-php-20*/*.elc
cp -rf \
ac-php-core.el \
phpctags \
ac-php-comm-tags-data.* \
helm-ac-php-apropros.el \
${PACKAGE_USER_DIR}/ac-php-core-20*/
cp -rf company-php.el ${PACKAGE_USER_DIR}/company-php-20*/
chmod a-w ${PACKAGE_USER_DIR}/ac-php-core-20*/*.el