mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-26 12:43:47 +02:00
68 lines
1.3 KiB
Bash
68 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Shell script to make a FPC .tar package for Linux
|
|
# Copyright 1996-2000 Michael Van Canneyt and Peter Vreman
|
|
#
|
|
|
|
# Version
|
|
VERSION=1.9.2
|
|
RELEASE=i386
|
|
|
|
unset FPCDIR
|
|
|
|
# Goto the toplevel if necessary
|
|
[ -d install ] || cd ..
|
|
|
|
make linuxzip
|
|
if [ $? != 0 ]; then
|
|
echo Failed to make distribution archive.
|
|
exit 1
|
|
fi
|
|
make docs
|
|
if [ $? != 0 ]; then
|
|
echo Failed to make documentation archive.
|
|
exit 1
|
|
fi
|
|
make sourcezip
|
|
if [ $? != 0 ]; then
|
|
echo Failed to make source archive.
|
|
exit 1
|
|
fi
|
|
make docsrc
|
|
if [ $? != 0 ]; then
|
|
echo Failed to make documentation source archive.
|
|
exit 1
|
|
fi
|
|
make demozip
|
|
if [ $? != 0 ]; then
|
|
echo Failed to make demo source archive.
|
|
exit 1
|
|
fi
|
|
|
|
SOURCES=`/bin/ls *src.tar.gz`
|
|
FILES=`/bin/ls *linux.tar.gz *exm.tar.gz`
|
|
RELFILES="binary.tar sources.tar demo.tar.gz docs.tar.gz install.sh"
|
|
|
|
echo Creating binary.tar
|
|
tar cf binary.tar $FILES
|
|
if [ $? != 0 ]; then
|
|
echo Failed to create binary.tar
|
|
exit 1
|
|
fi
|
|
echo Creating sources.tar
|
|
tar cf sources.tar $SOURCES
|
|
if [ $? != 0 ]; then
|
|
echo Failed to create sources.tar
|
|
exit 1
|
|
fi
|
|
echo Copying install.sh
|
|
cp install/install.sh .
|
|
chmod 755 install.sh
|
|
|
|
echo Creating fpc-$VERSION.$RELEASE.tar
|
|
tar cf fpc-$VERSION.$RELEASE.tar $RELFILES
|
|
if [ $? != 0 ]; then
|
|
echo Failed to create fpc-$VERSION.$RELEASE.tar
|
|
exit 1
|
|
fi
|