summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-07-10 06:14:41 +0200
committerRemi Collet <remi@remirepo.net>2017-07-10 06:14:41 +0200
commit98088da8115e96ab0bfe1b081d2dab2f929ec9f6 (patch)
treeeb61e06f806891c72d98a6663fb3742869742874
parente04a1c63af2577414517b92ef68bf0ecbcda0f5b (diff)
minor fix for #remirepo
-rw-r--r--composer.json21
-rwxr-xr-xphp-erusev-parsedown-get-source.sh4
2 files changed, 24 insertions, 1 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..28145af
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,21 @@
+{
+ "name": "erusev/parsedown",
+ "description": "Parser for Markdown.",
+ "keywords": ["markdown", "parser"],
+ "homepage": "http://parsedown.org",
+ "type": "library",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Emanuil Rusev",
+ "email": "hello@erusev.com",
+ "homepage": "http://erusev.com"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "autoload": {
+ "psr-0": {"Parsedown": ""}
+ }
+}
diff --git a/php-erusev-parsedown-get-source.sh b/php-erusev-parsedown-get-source.sh
index ba71f5d..4ad1051 100755
--- a/php-erusev-parsedown-get-source.sh
+++ b/php-erusev-parsedown-get-source.sh
@@ -43,6 +43,8 @@ print "GIT_REPO = $GIT_REPO"
print "GIT_DIR = $GIT_DIR"
TEMP_DIR=$(mktemp --dir)
+TAR_FILE=$PWD/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
+CMP_FILE=$PWD/composer.json
pushd $TEMP_DIR
print "Cloning git repo..."
@@ -51,6 +53,7 @@ pushd $TEMP_DIR
pushd $GIT_DIR
print "Checking out commit..."
$GIT checkout $GIT_COMMIT
+ cp composer.json $CMP_FILE
popd
TAR_DIR=${GIT_NAME}-${GIT_COMMIT}
@@ -58,7 +61,6 @@ pushd $TEMP_DIR
mv $GIT_DIR $TAR_DIR
- TAR_FILE=`$RPM --eval='%{_sourcedir}'`/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
print "TAR_FILE = $TAR_FILE"
[ -e $TAR_FILE ] && rm -f $TAR_FILE