pkgsrc-wip/jdk16/license-extract.mk
2008-03-18 01:55:28 +00:00

25 lines
1.2 KiB
Makefile

# $NetBSD: license-extract.mk,v 1.6 2008/03/18 01:55:28 tnn2 Exp $
.if !defined(BATCH) || !defined(PKG_DEVELOPER)
INTERACTIVE_STAGE+= extract
.endif
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
@cp ${PKGSRCDIR}/wip/jdk16/files/x_x2zip.c ${WRKSRC}
@cd ${WRKSRC} && ${CC} -o x_x2zip x_x2zip.c
.if !defined(BATCH) || !defined(PKG_DEVELOPER)
@echo ""
@echo "=> You will now be shown two licenses. If you accept the terms"
@echo "=> of each license agreement, type "yes" followed by ENTER to"
@echo "=> continue. Press ENTER now to continue or CTRL-C at any time"
@echo "=> to abort."
@sh -c 'read ANS'
cd ${WRKSRC} && unzip -p ${JRL_SRCFILE} LICENSE | more
@sh -c 'echo -n "=> Do you accept the terms of the license agreement? "; read ANS; if [ "$$ANS" != "yes" ]; then exit 1; fi'
cd ${WRKSRC} && unzip -p ${JRL_BINFILE} LICENSE | more
@sh -c 'echo -n "=> Do you accept the terms of the license agreement? "; read ANS; if [ "$$ANS" != "yes" ]; then exit 1; fi'
.endif
cd ${WRKSRC} && unzip -q ${JRL_BINFILE} X_X && ./x_x2zip 'YES I ACCEPT THE CLICK THROUGH LICENSE. ' X_X && unzip -q X_X.zip
rm -f ${WRKSRC}/X_X
cd ${WRKSRC} && unzip -q ${JRL_SRCFILE} X_X && ./x_x2zip 'YES I ACCEPT THE CLICK THROUGH LICENSE. ' X_X && unzip -q X_X.zip