Skip to content
Snippets Groups Projects
Commit 9928ef84 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Fixing PKGBUILD path

parent 7758836e
No related branches found
No related tags found
No related merge requests found
......@@ -71,13 +71,13 @@ public class Extra {
+ "VERSION=$(git describe --abbrev=0 | sed 's/v\\(.*\\)/\\1/g'); cd ..\n"
+ "echo 'Moving directory to version'; mv touhoufm touhoufm-${VERSION}\n"
+ "echo 'Packing source file'; tar -czvf touhoufm-${VERSION}.tar.gz touhoufm-${VERSION}/*\n"
+ "echo 'Replace VERSION in PKGBUILD'; sed -i 's/VERSION/${VERSION}/g' PKGBUILD\n"
+ "echo 'Replace VERSION in PKGBUILD'; sed -i 's/VERSION/${VERSION}/g' dist/PKGBUILD\n"
+ "echo 'Replacing file placeholders'; md5sum * | sed 's/\\./\\\\./g' | while read ITEM;\n"
+ "do\n"
+ "SEDARG=($ITEM)\n"
+ "SEDREPL=$(echo \"s/md5-${SEDARG[1]}-md5/${SEDARG[0]}/g\" | sed 's/\\./-/g')\n"
+ "echo \"Applying: sed \\\"$SEDREPL\\\"\"\n"
+ "sed -i \"$SEDREPL\" PKGBUILD\n"
+ "sed -i \"$SEDREPL\" dist/PKGBUILD\n"
+ "done")
.interpreterShell();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment