Created
December 5, 2010 23:12
-
-
Save dabrahams/729587 to your computer and use it in GitHub Desktop.
Hacked up ert install.sh to ignore bzr and create missing directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./build.sh ~/.emacs.d/3rd-party/package.d/ert | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/lisp/emacs-lisp/ert-batch.el > lisp/emacs-lisp/ert-batch.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/lisp/emacs-lisp/ert-run.el > lisp/emacs-lisp/ert-run.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/lisp/emacs-lisp/ert-ui.el > lisp/emacs-lisp/ert-ui.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/lisp/emacs-lisp/ert-x.el > lisp/emacs-lisp/ert-x.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/lisp/emacs-lisp/ert.el > lisp/emacs-lisp/ert.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/test/automated/ert-tests.el > test/automated/ert-tests.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/test/automated/ert-x-tests.el > test/automated/ert-x-tests.el | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/test/automated/Makefile.in > test/automated/Makefile.in | |
sed -e s/NOT \(part of GNU Emacs\)/\1/ < /Users/dave/src/elisp.repo/3rd-party/ert/doc/misc/ert.texi > doc/misc/ert.texi | |
can't find file to patch at input line 5 | |
Perhaps you used the wrong -p or --strip option? | |
The text leading up to this was: | |
-------------------------- | |
|This patch file is used by install.sh. | |
| | |
|--- doc/misc/Makefile.in 2010-10-06 04:20:46 +0000 | |
|+++ doc/misc/Makefile.in 2010-10-08 05:27:56 +0000 | |
-------------------------- | |
File to patch: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ $# != 1 ]; then | |
echo "usage: ./install.sh destdir" | |
echo | |
echo "Installs ERT into an Emacs bzr workspace. The argument destdir must" | |
echo "be the root of that workspace." | |
exit 1 | |
fi | |
destdir="$1" | |
origdir="$(pwd)" | |
lispfiles="$(find lisp -name \*.el)" | |
testfiles="$(find test -name \*.el -o -name Makefile.in)" | |
docfiles="$(find doc -name \*.texi)" | |
mkdir -p "$destdir" | |
cd -- "$destdir" | |
# if ! bzr diff -q > /dev/null; then | |
# echo "There are pending changes in $(pwd). Aborting." | |
# exit 1 | |
# fi | |
mkdir -p test/automated | |
for i in $lispfiles $testfiles $docfiles; do | |
mkdir -p "${i%/*}" | |
echo sed -e 's/NOT \(part of GNU Emacs\)/\1/' '<' "$origdir/$i" '>' "$i" | |
sed -e 's/NOT \(part of GNU Emacs\)/\1/' < "$origdir/$i" > "$i" | |
done | |
# bzr add $lispfiles $testfiles $docfiles | |
patch -p0 < "$origdir/install.patch" | |
autoreconf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment