File: ert-helper.el

package info (click to toggle)
php-elisp 1.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,268 kB
  • sloc: lisp: 7,468; php: 5,396; makefile: 42; sh: 10
file content (17 lines) | stat: -rw-r--r-- 867 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(if (getenv "AUTOPKGTEST_TMP")
    (let ((workspace (getenv "AUTOPKGTEST_TMP")))
      (shell-command "mv tests $AUTOPKGTEST_TMP")
      (message "Using %s/tests as writeable workspace" workspace)
      (shell-command "ln -s $AUTOPKGTEST_TMP/tests tests")
      (message "ln -s %s/tests tests" workspace)
      (shell-command "touch tests/project/1/.git")
      (message "touch tests/project/1/.git"))
  (let ((php-el-files '("lisp/php.el" "lisp/php-align.el" "lisp/php-face.el"
                        "lisp/php-project.el" "lisp/php-mode-debug.el"
                        "lisp/php-mode.el")))
    (while php-el-files
      (load-file (car php-el-files))
      (setq php-el-files (cdr php-el-files)))
    (package-generate-autoloads "php-mode" "lisp"))
  (shell-command "mv lisp/php-mode-autoloads.el debian/tmp/")
  (load-file "debian/tmp/php-mode-autoloads.el"))