1999-03-10 20:06:34 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# makedist - make a digital unix distribution.
|
|
|
|
#
|
|
|
|
|
|
|
|
rm -rf fltk-1.0-dunix
|
|
|
|
mkdir fltk-1.0-dunix
|
|
|
|
|
1999-03-10 20:46:58 +03:00
|
|
|
echo "Building distribution tree..."
|
1999-03-10 20:06:34 +03:00
|
|
|
rm -rf usr
|
|
|
|
mkdir usr
|
1999-03-10 20:46:58 +03:00
|
|
|
mkdir usr/bin
|
|
|
|
mkdir usr/bin/X11
|
|
|
|
mkdir usr/include
|
|
|
|
mkdir usr/include/FL
|
|
|
|
mkdir usr/info
|
|
|
|
mkdir usr/info/fltk
|
|
|
|
mkdir usr/lib
|
|
|
|
mkdir usr/man
|
|
|
|
mkdir usr/man/man1
|
1999-03-10 20:06:34 +03:00
|
|
|
|
1999-03-10 20:46:58 +03:00
|
|
|
cp ../../fluid/fluid usr/bin/X11
|
|
|
|
strip usr/bin/X11/fluid
|
1999-03-10 20:06:34 +03:00
|
|
|
|
1999-03-10 20:46:58 +03:00
|
|
|
cp ../../lib/libfltk.a usr/lib
|
|
|
|
cp ../../lib/libfltk.so.1 usr/lib
|
|
|
|
ln -sf libfltk.so.1 usr/lib/libfltk.so
|
|
|
|
|
|
|
|
cp ../../documentation/*.html usr/info/fltk
|
|
|
|
cp ../../documentation/*.gif usr/info/fltk
|
|
|
|
cp ../../documentation/*.jpg usr/info/fltk
|
|
|
|
|
|
|
|
cp ../../documentation/fluid.1 usr/man/man1
|
1999-03-10 20:06:34 +03:00
|
|
|
|
|
|
|
ln -sf FL usr/include/Fl
|
|
|
|
cd usr/include/FL
|
1999-03-10 20:46:58 +03:00
|
|
|
cp ../../../../../FL/*.[hH] .
|
1999-03-10 20:06:34 +03:00
|
|
|
for file in *.H; do
|
|
|
|
ln -s $file `basename $file .H`.h
|
|
|
|
done
|
1999-03-10 20:46:58 +03:00
|
|
|
cd ../../..
|
1999-03-10 20:06:34 +03:00
|
|
|
|
1999-03-10 20:46:58 +03:00
|
|
|
kits fltk.key . fltk-1.0-dunix
|
1999-03-10 20:06:34 +03:00
|
|
|
|
|
|
|
echo "Archiving distribution..."
|
|
|
|
|
|
|
|
tar cf fltk-1.0-dunix.tar fltk-1.0-dunix
|
|
|
|
|
|
|
|
echo "Compressing distribution..."
|
1999-03-10 20:46:58 +03:00
|
|
|
rm -f fltk-1.0-dunix.tar.gz
|
1999-03-10 20:06:34 +03:00
|
|
|
gzip -9 fltk-1.0-dunix.tar
|
|
|
|
|
|
|
|
echo "Removing temporary distribution files..."
|
|
|
|
rm -rf fltk-1.0-dunix
|
|
|
|
rm -rf usr
|