Skip to content

Commit

Permalink
Rename and cleaned up maintainer's script
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Apr 5, 2019
1 parent f2a862f commit 4c409b8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .elpaignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.gitignore
.gitattributes
Makefile
cp_to_elpa.sh
cp2elpa.sh
images
commom_php
phptest
Expand Down
39 changes: 39 additions & 0 deletions cp2elpa.sh
Original file line number Diff line number Diff line change
@@ -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
19 changes: 0 additions & 19 deletions cp_to_elpa.sh

This file was deleted.

0 comments on commit 4c409b8

Please sign in to comment.