Browse Source

Improved the makefile, binary specific programs are now in /usr/lib/dswim

rather than /usr/lib/SWIM.
master
freesource 23 years ago
parent
commit
c59f6c123d
  1. 17
      Makefile
  2. 21
      Makefile.pkg
  3. 8
      SWIM/Conf.pm

17
Makefile

@ -7,17 +7,24 @@ install:
cp -a swim /usr/bin/swim
install -d /usr/share/perl5/SWIM
cp -fa SWIM/*pm /usr/share/perl5/SWIM
install -d /usr/lib/SWIM
cp -fa bin/* /usr/lib/SWIM
install -d /usr/lib/dswim
cp -fa bin/*swim /usr/lib/dswim
install -d /etc/swim
cp -f swimrc /etc/swim
cp -fa swimrc /etc/swim
install -d /usr/share/man/man8
cp -fa swim.8 /usr/share/man/man8
install -d /usr/share/man/man5
cp -fa swimrc.5 /usr/share/man/man5
remove:
rm /usr/share/perl5/SWIM/*
rmdir /usr/share/perl5/SWIM
rm /usr/bin/swim
rm /usr/lib/SWIM/*swim
rm -rf /usr/lib/SWIM
rm /usr/lib/dswim/*swim
rmdir /usr/lib/dswim
rm /usr/share/man/man8/swim.8
rm /usr/share/man/man5/swimrc.5

21
Makefile.pkg

@ -7,17 +7,24 @@ install:
cp -a swim $(DESTDIR)/usr/bin/swim
install -d $(DESTDIR)/usr/share/perl5/SWIM
cp -fa SWIM/*pm $(DESTDIR)/usr/share/perl5/SWIM
install -d $(DESTDIR)/usr/lib/SWIM
cp -fa bin/* $(DESTDIR)/usr/lib/SWIM
install -d $(DESTDIR)/usr/lib/dswim
cp -fa bin/*swim $(DESTDIR)/usr/lib/dswim
install -d $(DESTDIR)/etc/swim
cp -f swimrc $(DESTDIR)/etc/swim
cp -fa swimrc $(DESTDIR)/etc/swim
install -d $(DESTDIR)/usr/share/man/man8
cp -fa swim.8 $(DESTDIR)/usr/share/man/man8
install -d $(DESTDIR)/usr/share/man/man5
cp -fa swimrc.5 $(DESTDIR)/usr/share/man/man5
remove:
rm /usr/lib/perl5/SWIM/*
rmdir /usr/lib/perl5/SWIM
rm /usr/share/perl5/SWIM/*
rmdir /usr/share/perl5/SWIM
rm /usr/bin/swim
rm /usr/lib/SWIM/*
rmdir /usr/lib/SWIM
rm /usr/lib/dswim/*swim
rmdir /usr/lib/dswim
rm /usr/share/man/man8/swim.8
rm /usr/share/man/man5/swimrc.5

8
SWIM/Conf.pm

@ -217,16 +217,16 @@ $pager = $ENV{PAGER};
$pre="/usr";
# This is the hash making program fastswim.
$fastswim = "$pre/lib/SWIM/fastswim";
$fastswim = "$pre/lib/dswim/fastswim";
# imswim in an alternative to fastswim for --lowmem
$imswim = "$pre/lib/SWIM/imswim";
$imswim = "$pre/lib/dswim/imswim";
# This is the low memory program slowswim.
$slowswim = "$pre/lib/SWIM/slowswim";
$slowswim = "$pre/lib/dswim/slowswim";
# This is the dir/file making program longswim.
$longswim = "$pre/lib/SWIM/longswim";
$longswim = "$pre/lib/dswim/longswim";
############
# TEMP DIR #

Loading…
Cancel
Save