forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pluginhandler: prepare scriptlet support (canonical#987)
LP: #1642371 Signed-off-by: Sergio Schvezov <[email protected]> Signed-off-by: Kyle Fazzari <[email protected]>
- Loading branch information
1 parent
eb9f74b
commit 5671b91
Showing
7 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: prepare-scriptlet-test | ||
version: '0.1' | ||
summary: Runs the prepare scriptlet for a part | ||
description: | | ||
Runs the shell script defined in `prepare` before the build takes place | ||
creating a `Makefile` for the make plugin to execute on. | ||
grade: devel | ||
confinement: devmode | ||
|
||
parts: | ||
prepare-scriptlet-test: | ||
source: . | ||
plugin: make | ||
prepare: | | ||
echo "all:" > Makefile | ||
echo '\techo building' >> Makefile | ||
echo "install:" >> Makefile | ||
echo '\ttouch $(DESTDIR)/prepared' >> Makefile | ||
prepare-and-install: | ||
source: . | ||
plugin: make | ||
prepare: | | ||
echo 'all:' > Makefile | ||
echo '\ttouch built' >> Makefile | ||
echo 'install:' >> Makefile | ||
echo '\ttouch installed' >> Makefile | ||
install: | | ||
cp built $SNAPCRAFT_PART_INSTALL/ | ||
cp installed $SNAPCRAFT_PART_INSTALL/ |
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
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
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
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
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
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