2 Commits

Author SHA1 Message Date
Jay Larson
7fc565d736 Updated version - missed in last check in 2020-08-01 15:41:48 -05:00
Jay Larson
531742438e The following changes were made:
* sl no longer duplicates dependency check message for special packages
  * Removed ROOT and temporary files in SL accidentally checked in previously
2020-08-01 15:38:53 -05:00
4 changed files with 12 additions and 25 deletions

View File

@@ -80,13 +80,13 @@ VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER)
include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/configure: $(ARCHIVE)
@if [ '$(TYPE)' = 'application/x-bzip2' ]; then \
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
tar -jxf $(ARCHIVE); \
elif [ '$(TYPE)' = 'application/x-gzip' ]; then \
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
tar -zxf $(ARCHIVE); \
elif [ '$(TYPE)' = 'application/x-tar' ]; then \
elif [ '$(TYPE)' == 'application/x-tar' ]; then \
tar -xf $(ARCHIVE); \
elif [ '$(TYPE)' = 'application/x-xz' ]; then \
elif [ '$(TYPE)' == 'application/x-xz' ]; then \
tar -xf $(ARCHIVE); \
else \
echo 'Unable to determine archive type'; \

View File

@@ -65,8 +65,6 @@ endif
SLINFO = $(SLDIR)/slinfo
MANIFEST = $(SLDIR)/manifest
USHER = $(SLDIR)/usher
CONFIGDIR = $(PWD)/CONFIG
CONFIG = $(SLDIR)/config.tar.gz
FILES = $(SLDIR)/files.tar.gz
# BRIEF is required.
@@ -80,19 +78,12 @@ $(PKGFILE): $(SLINFO) $(FILES)
rm -v $(PKGFILE); \
fi
@ar cvr $(PKGFILE) $(SLINFO) $(MANIFEST) && \
@ar cvr $(PKGFILE) $(SLINFO) $(MANIFEST); \
if [ -f $(USHER) ]; then \
chmod +x $(USHER) && \
chmod +x $(USHER); \
ar cvr $(PKGFILE) $(USHER); \
fi && \
ar cvr $(PKGFILE) $(FILES) && \
if [ -d $(CONFIGDIR) ] && [ "$$(ls -A)" ]; then \
cd $(CONFIGDIR) && \
tar cvzf $(CONFIG) *; \
if [ -f $(CONFIG) ]; then \
ar cvr $(PWD)/$(PKGFILE) $(CONFIG); \
fi; \
fi
ar cvr $(PKGFILE) $(FILES)
@echo "Successfully built $(PKGFILE)"
@@ -185,9 +176,5 @@ $(FILES): $(ROOT)
;; \
esac; \
done
@cd $(ROOT) && \
if [ "$$(ls -A)" ]; then \
tar cvzf $(FILES) *; \
else \
tar cvzf $(FILES) -T /dev/null; \
fi
@cd $(ROOT) && tar cvzf $(FILES) *

View File

@@ -40,7 +40,7 @@ our @EXPORT = qw(
$sl
);
our $VERSION = '0.19';
our $VERSION = '0.17';
############################################################
#

View File

@@ -633,7 +633,7 @@ elsif ( $command eq 'install' ) {
$string = "coreutils $string";
}
if ( ! installed( 'sl-base' ) ) {
$string =~ 's/(^|\s+)sl-base(\s+|$)//g';
$string =~ s/(^|\s*)sl-base(\s*|$)//g;
$string = "sl-base $string";
}