OSDN Git Service

Add Slitaz
authora <a@b.c>
Sat, 24 Mar 2018 13:10:26 +0000 (14:10 +0100)
committera <a@b.c>
Sat, 24 Mar 2018 13:10:26 +0000 (14:10 +0100)
README.md
set.pl
src/common.c

index c050c88..23dc29a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -366,6 +366,7 @@ Replace **distro** with the following [bases](https://en.wikipedia.org/wiki/List
 - [x] voidlinux
 - [x] crux
 - [x] alpinelinux
+- [x] slitaz
 
 Cannot list the \*BSD flavours as "distros", so they deserve own options:
 
diff --git a/set.pl b/set.pl
index dacd46d..ae84196 100644 (file)
--- a/set.pl
+++ b/set.pl
@@ -95,6 +95,7 @@ sub reflace_single {
 
   my $osEntered = uc $ARGV[0];
   my @osArr = (
+    "SLITAZ",
     "ARCHLINUX","DEBIAN","ALPINELINUX",
     "GENTOO","SLACKWARE","CRUX",
     "RHEL","FRUGALWARE","VOIDLINUX",
index bab9b93..e73a76a 100644 (file)
@@ -263,6 +263,13 @@ get_packs(char *str1) {
   CHECK_POPEN(pkgs_file, "apk info 2> /dev/null | wc -l", &packages);
 #pragma GCC diagnostic pop
 
+#elif defined(SLITAZ)
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-result"
+  CHECK_POPEN(pkgs_file, "tazpkg list 2> /dev/null | wc -l", &packages);
+#pragma GCC diagnostic pop
+
 #elif defined(FREEBSD)
 
 #pragma GCC diagnostic push