diff --git a/.elpaignore b/.elpaignore index f9159ad..230822f 100644 --- a/.elpaignore +++ b/.elpaignore @@ -3,7 +3,7 @@ .gitignore .gitattributes Makefile -cp_to_elpa.sh +cp2elpa.sh images commom_php phptest diff --git a/cp2elpa.sh b/cp2elpa.sh new file mode 100755 index 0000000..83c06bd --- /dev/null +++ b/cp2elpa.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# This allows the configuration of the package path as follows: +# - .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}/develop/ac-php-20*/*.elc +rm -rf ${PACKAGE_USER_DIR}/develop/ac-php-core-20*/*.elc +rm -rf ${PACKAGE_USER_DIR}/develop/company-php-20*/*.elc + +cp -rf \ + ac-php-core.el \ + phpctags \ + ac-php-comm-tags-data.* \ + helm-ac-php-apropros.el \ + ${PACKAGE_USER_DIR}/develop/ac-php-core-20*/ + +cp -rf company-php.el ${PACKAGE_USER_DIR}/develop/company-php-20*/ + +chmod a-w ${PACKAGE_USER_DIR}/develop/ac-php-core-20*/*.el diff --git a/cp_to_elpa.sh b/cp_to_elpa.sh deleted file mode 100755 index 614cbaf..0000000 --- a/cp_to_elpa.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -cd `dirname $0` -rm -rf ~/.emacs.d/elpa/ac-php-20*/*.elc -rm -rf ~/.emacs.d/elpa/ac-php-core-20*/*.elc -rm -rf ~/.emacs.d/elpa/company-php-20*/*.elc -cp -rf ac-php-core.el phpctags ac-php-comm-tags-data.* helm-ac-php-apropros.el ~/.emacs.d/elpa/ac-php-core-20*/ -cp -rf ac-php.el ~/.emacs.d/elpa/ac-php-20*/ -cp -rf company-php.el ~/.emacs.d/elpa/company-php-20*/ - -chmod a-w ~/.emacs.d/elpa/ac-php-core-20*/*.el - - -rm -rf ~/.emacs.d/elpa/develop/ac-php-20*/*.elc -rm -rf ~/.emacs.d/elpa/develop/ac-php-core-20*/*.elc -rm -rf ~/.emacs.d/elpa/develop/company-php-20*/*.elc -cp -rf ac-php-core.el phpctags ac-php-comm-tags-data.* helm-ac-php-apropros.el ~/.emacs.d/elpa/develop/ac-php-core-20*/ -cp -rf company-php.el ~/.emacs.d/elpa/develop/company-php-20*/ - -chmod a-w ~/.emacs.d/elpa/develop/ac-php-core-20*/*.el