Files
Cody Boone Ferguson 0d65af1b2b Add unobfuscated code from @SirWumpus
The entries 2004/hibachi and 2005/mynx have unobfuscated code now.

2004/hibachi has a configure script that is used along the lines of the
original entry (with some adjustments and fixes) and the hibachi.alt.c
had to have ctype.h included too. The directory src/localhost was copied
to src-alt/localhost but the rest of src/ was from Anthony. The Makefile
had to be updated to build this version.

2005/mynx does have a configure script but it is, just like the original
entry, unused and so the unobfuscated (in source-alt/) is also unused.
The mynx.alt.c was changed to mynx.alt2.c and the unobfuscated code was
made mynx.alt.c.

Updated manifest, rebuilt .entry.json and index.html files.

After a question is answered and taken care of (in one of 199[1-3]/ant -
not sure which one) issue #2513 can possibly be closed as complete
(though the manifest updates will have to be looked at more when 2004
and 2005 are reviewed).
2024-07-08 13:11:00 -07:00

185 lines
5.9 KiB
Plaintext

#
# @package_copyright@
#
# @configure_input@
#
.POSIX :
########################################################################
### Pick one that best suits your system.
########################################################################
prefix = @prefix@
exec_prefix = @exec_prefix@
PACKAGE = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
TARNAME = @PACKAGE_TARNAME@
TARDIR = ../../
SRCDIR = ./
PKGDIR = ${PACKAGE}-${VERSION}
CC = @CC@
CC_E = @CC_E@
CC_O = @CC_O@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
########################################################################
### No further configuration beyond this point.
########################################################################
.SUFFIXES :
O = .@OBJEXT@
E = @EXEEXT@
.SUFFIXES : .c $O $E
TARBALL = ${TARNAME}-${VERSION}.tar
SPOILER = ${TARNAME}.alt-${VERSION}.tar
#######################################################################
all: build
build : ${PACKAGE}$E ${SRCDIR}${PACKAGE}-start.sh.in mkentry$E prepare-source
@echo
@echo '***************************************************************'
@echo Build ${PACKAGE}/${VERSION} DONE
@echo '***************************************************************'
@echo
clean :
-rm -f *.o *.obj *.i *.map *.tds *.TR2 *.ilc *.ild *.ilf *.ils *.log
-rm ${PACKAGE}$E ioccc$E mkentry$E
@echo
@echo '***************************************************************'
@echo Clean ${PACKAGE}/${VERSION} DONE
@echo '***************************************************************'
@echo
distclean: clean
-cd ${SRCDIR}; make distclean
@echo '---------------------------------------------------------------'
-rm -rf autom4te.cache config.status config.log ${PACKAGE}-start.sh makefile
-rm -f $(TARDIR)$(TARBALL).gz $(TARDIR)$(SPOILER).gz ${SRCDIR}supplement.tar.gz
@echo
@echo '***************************************************************'
@echo Distribution Clean ${PACKAGE}/${VERSION} DONE
@echo '***************************************************************'
@echo
nuke: distclean
-rm -f configure ${SRCDIR}${PACKAGE}.c ${SRCDIR}configure
@echo
@echo '***************************************************************'
@echo Nuke ${PACKAGE}/${VERSION} DONE
@echo '***************************************************************'
@echo
${PACKAGE}$E: ${PACKAGE}.alt.c
$(CC) $(CFLAGS) $(LDFLAGS) $(CC_E)${PACKAGE}$E ${PACKAGE}.alt.c $(LIBS)
${PACKAGE}-start.sh: ${PACKAGE}-start.sh.in config.status
./config.status
${SRCDIR}${PACKAGE}.c: ${PACKAGE}.alt.c transform.sed ioccc$E
@echo '***************************************************************'
@sed -f transform.sed ${PACKAGE}.alt.c | ./ioccc$E | sed -e '/^[ ]*$$/d' >${SRCDIR}${PACKAGE}.c
@echo '***************************************************************'
${SRCDIR}configure: ${SRCDIR}configure.in
cd ${SRCDIR}; autoconf; chmod 755 ./configure
${SRCDIR}${PACKAGE}-start.sh.in: ${PACKAGE}-start.sh.in
sed -e 's/.alt//' ${PACKAGE}-start.sh.in >${SRCDIR}${PACKAGE}-start.sh.in
ioccc$E: ioccc.c
$(CC) $(CC_E)ioccc$E ioccc.c
mkentry$E: ${SRCDIR}IOCCC-2004/mkentry.c
$(CC) $(CC_E)mkentry$E ${SRCDIR}IOCCC-2004/mkentry.c
entry: mkentry$E supplement.tar.gz ${SRCDIR}entry.0.sh
-cd ${SRCDIR}; make distclean; sh entry.0.sh
supplement.tar.gz:
-cd ${SRCDIR}; make distclean
chmod 755 ${SRCDIR}configure
find ${SRCDIR} -type d -exec chmod 755 \{\} \;
find ${SRCDIR} -type f ! \( -name mkentry -o -name ioccc -o -name hibachi -o -name '*.exe' \) -exec chmod 644 \{\} \;
find ${SRCDIR} -name '*.php' -name '*.pl' -name '*.rb' -name '*.sh' -exec chmod 755 \{\} \;
tar -zcf ${SRCDIR}supplement.tar.gz -C ${SRCDIR} \
configure \
configure.in \
makefile.in \
${PACKAGE}-start.sh.in \
localhost/style.css \
localhost/index.html \
localhost/CHANGES-OBFUSCATED.TXT \
localhost/CHANGES-SPOILER.TXT \
localhost/reference/rfc2616.html \
localhost/test \
localhost/Img/hot-coal-edge-110-indent.png \
localhost/Img/cygwin-icon.gif \
localhost/Img/freebsd.gif \
localhost/Img/hibachi-256-oc-nc-300x150.gif \
localhost/Img/logosml.256.png \
localhost/Img/php-small-trans-light.gif \
localhost/Img/powered-by-hibachi-150x75.png \
localhost/Img/rectangle_power_perl.gif \
localhost/Img/sun_logo.gif \
localhost/Img/win.gif
@echo
@echo '***************************************************************'
@ls -l ${SRCDIR}supplement.tar.gz
@echo '***************************************************************'
@echo
prepare-source: ${SRCDIR}${PACKAGE}.c ${SRCDIR}${PACKAGE}-start.sh.in ${SRCDIR}configure
tarball: prepare-source supplement.tar.gz
chmod 755 ${SRCDIR}configure
tar -cf $(TARDIR)$(TARBALL) -C $(TARDIR) \
${PACKAGE}/configure \
${PACKAGE}/build.txt \
${PACKAGE}/README.TXT \
${PACKAGE}/${PACKAGE}.c \
${PACKAGE}/supplement.tar.gz
@echo
@echo '***************************************************************'
@ls -l $(TARDIR)$(TARBALL)
@echo '***************************************************************'
@echo
pack.alt: tarball
cp $(TARDIR)$(TARBALL) $(TARDIR)$(SPOILER)
chmod 755 configure
tar -rf $(TARDIR)$(SPOILER) -C $(TARDIR) \
${PACKAGE}/IOCCC-2004 \
${PACKAGE}/src-alt/ioccc.c \
${PACKAGE}/src-alt/configure \
${PACKAGE}/src-alt/configure.in \
${PACKAGE}/src-alt/makefile.in \
${PACKAGE}/src-alt/transform.sed \
${PACKAGE}/src-alt/${PACKAGE}.alt.c \
${PACKAGE}/src-alt/${PACKAGE}-start.sh.in
cd $(TARDIR); gzip $(SPOILER); md5sum $(SPOILER).gz >${PACKAGE}/localhost/${PACKAGE}.alt.md5
@echo
@echo '***************************************************************'
@ls -l $(TARDIR)$(SPOILER).gz
@echo '***************************************************************'
@echo
pack-obfuscated: tarball
cd $(TARDIR); gzip $(TARBALL); md5sum $(TARBALL).gz >${PACKAGE}/localhost/${PACKAGE}.md5
@echo
@echo '***************************************************************'
@ls -l $(TARDIR)$(TARBALL).gz
@echo '***************************************************************'
@echo
pack: pack.alt pack-obfuscated