aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile44
-rwxr-xr-xrun_overlaycreation.py47
-rwxr-xr-xrun_sync_and_overlaycreation.py45
3 files changed, 0 insertions, 136 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7e60eb1..0000000
--- a/Makefile
+++ /dev/null
@@ -1,44 +0,0 @@
-# runs tests
-EXAMPLES = ./examples
-PACKAGES = $(EXAMPLES)/packages
-
-# make PYVER=<2|3> <target>
-PYVER = 3
-PY = python$(PYVER)
-
-LOGDIR = ./log
-
-SYNC = ./run_sync.py
-PY_NOP = ./nop.py
-PY_OVL = ./run_overlaycreation.py
-
-.PHONY: default dummy \
- test test-nop nop \
- test-seewave seewave \
- clean-log \
- download
-
-download: test-nop $(SYNC)
- $(PY) $(SYNC)
-
-default: dummy test
-
-seewave: test-seewave
-nop: test-nop
-
-clean-log:
- rm -fv -- $(LOGDIR)/*.log
-
-$(LOGDIR):
- mkdir -v $(LOGDIR)
-
-dummy:
- $(PY) --version
-
-test-seewave: test-nop $(PY_OVL) $(PACKAGES)
- $(PY) $(PY_OVL) --show $(PACKAGES)/seewave_*.tar.gz
-
-test-nop: $(PY_NOP) $(LOGDIR)
- @$(PY) $(PY_NOP)
-
-test: test-nop test-seewave
diff --git a/run_overlaycreation.py b/run_overlaycreation.py
deleted file mode 100755
index 2429dd5..0000000
--- a/run_overlaycreation.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python3
-from sys import exit
-from sys import argv as ARGV
-
-if True in ( x in ARGV for x in ( '--help', '-h', '?' ) ):
- print ( '\n'.join ( (
- "usage: %s <pkgs|args>" % ARGV[0],
- "* pkgs ::= [pkg]*",
- "* pkg ::= <path to package file, relative or absolute",
- "* args ::= [arg]*",
- "* arg ::= --write|--show|--help",
- "** write ^= write overlay (somewhere in /tmp by default)",
- "** show ^= print overlay to stdout",
- ) ) )
- exit ( 0 )
-
-
-from roverlay.overlay.creator import OverlayCreator
-
-default_pkg = ( 'examples/packages/seewave_1.6.3.tar.gz', )
-SHOW = False
-WRITE = False
-
-pkg_list = list()
-for i, x in enumerate ( ARGV ):
- if i == 0:
- pass
- elif x == '--show':
- SHOW = True
- elif x == '--write':
- WRITE = True
- else:
- pkg_list.append ( x )
-
-if len (pkg_list) == 0: pkg_list = default_pkg
-
-
-o = OverlayCreator()
-
-o.add_package_files ( *pkg_list )
-o.can_write_overlay = WRITE
-o.run()
-if SHOW: o.show_overlay()
-o.close ( write=True )
-
-if not ( WRITE or SHOW ):
- print ( "Use '--show' or '--write' if you want ebuild/metadata/Manifest output." )
diff --git a/run_sync_and_overlaycreation.py b/run_sync_and_overlaycreation.py
deleted file mode 100755
index b7e472a..0000000
--- a/run_sync_and_overlaycreation.py
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env python3
-from sys import exit
-from sys import argv as ARGV
-
-if True in ( x in ARGV for x in ( '--help', '-h', '?' ) ):
- print ( '\n'.join ( (
- "usage: %s <args>" % ARGV[0],
- "* args ::= [arg]*",
- "* arg ::= --write|--show|--help",
- "** write ^= write overlay (somewhere in /tmp by default)",
- "** show ^= print overlay to stdout",
- ) ) )
- exit ( 0 )
-
-import roverlay
-
-from roverlay.overlay.creator import OverlayCreator
-from roverlay.remote import RepoList
-
-SHOW = False
-WRITE = False
-
-for i, x in enumerate ( ARGV ):
- if i == 0:
- pass
- elif x == '--show':
- SHOW = True
- elif x == '--write':
- WRITE = True
-
-o = OverlayCreator()
-o.can_write_overlay = WRITE
-
-r = RepoList()
-r.load()
-
-r.sync()
-r.add_packages ( o.add_package )
-o.run()
-
-if SHOW: o.show_overlay()
-o.close ( write=True )
-
-if not ( WRITE or SHOW ):
- print ( "Use '--show' or '--write' if you want ebuild/metadata/Manifest output." )