mirror of https://github.com/vitalif/phantomjs
Create an import script for LineNoise.
This addresses [Issue #409](http://code.google.com/p/phantomjs/issues/detail?id=409). The script: * Get the latest code. Since LineNoise is pretty small, grabbing the tarball straight from the repo should be just fine. * Extract and place the files in the right directory (src/linenoise). * Remove unnecessary stuff (project files etc). * Update the src/linenoise/README.md to refer to the revision being imported.1.5
parent
775c94942d
commit
2451001d81
|
@ -4,16 +4,15 @@ by [Tad Marshall](https://github.com/tadmarshall) that lives at
|
|||
[github.com/tadmarshall/linenoise](https://github.com/tadmarshall/linenoise).
|
||||
|
||||
The version of Linenoise included in PhantomJS refers to the commit:
|
||||
-----
|
||||
commit 7946e2c2d08df11dca2b99c5db40360c3d3e9a80
|
||||
Author: Alan T. DeKok <aland@freeradius.org>
|
||||
Date: Wed Oct 26 15:56:52 2011 +0200
|
||||
|
||||
commit 7946e2c2d08df11dca2b99c5db40360c3d3e9a80
|
||||
Author: Alan T. DeKok <aland@freeradius.org>
|
||||
Date: Wed Oct 26 15:56:52 2011 +0200
|
||||
|
||||
Added character callbacks again
|
||||
Added character callbacks again
|
||||
-----
|
||||
|
||||
Some files not needed for PhantomJS are removed.
|
||||
|
||||
|
||||
Linenoise is licensed under the BSD-license.
|
||||
|
||||
Praise to all the developers that contribute to this nice little pearl.
|
||||
Kudos to all the developers that contribute to this nice little pearl.
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
#!/bin/bash
|
||||
|
||||
LINENOISE_PATH="$PWD/../src/linenoise"
|
||||
LINENOISE_SRC_PATH="$LINENOISE_PATH/src"
|
||||
GITHUB_CLONE_URL="http://github.com/tadmarshall/linenoise.git"
|
||||
TO_REMOVE=".gitignore .git *.vcproj *.sln Makefile"
|
||||
|
||||
|
||||
# Make a new Linenoise source directory
|
||||
rm -rf $LINENOISE_SRC_PATH
|
||||
mkdir -p $LINENOISE_SRC_PATH
|
||||
|
||||
# Cloning latest 'master' of Linenoise
|
||||
git clone $GITHUB_CLONE_URL $LINENOISE_SRC_PATH
|
||||
|
||||
# From within the source directory...
|
||||
pushd $LINENOISE_SRC_PATH
|
||||
|
||||
# Extract latest commit log info and prepare "README.md" content
|
||||
LATEST_COMMIT=$(git log -1)
|
||||
README_CONTENT=$(cat << EOF
|
||||
This project contains the **Linenoise project**, initially released
|
||||
by [Salvatore Sanfilippo](https://github.com/antirez). Here we import a fork
|
||||
by [Tad Marshall](https://github.com/tadmarshall) that lives at
|
||||
[github.com/tadmarshall/linenoise](https://github.com/tadmarshall/linenoise).
|
||||
|
||||
The version of Linenoise included in PhantomJS refers to the commit:
|
||||
-----
|
||||
$LATEST_COMMIT
|
||||
-----
|
||||
|
||||
Some files not needed for PhantomJS are removed.
|
||||
|
||||
Linenoise is licensed under the BSD-license.
|
||||
Kudos to all the developers that contribute to this nice little pearl.
|
||||
|
||||
EOF)
|
||||
|
||||
# Remove unnecessary files
|
||||
rm -rf $TO_REMOVE
|
||||
|
||||
popd # ... and out!
|
||||
|
||||
# Save "README.md"
|
||||
echo "$README_CONTENT" > "$LINENOISE_PATH/README.md"
|
Loading…
Reference in New Issue