From 316dc1fb80a4389e05e71cb88e79172d8b9caed3 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 15 May 2020 13:17:11 +0300 Subject: rcc: add generate command --- rcc_format/__init__.py | 1 + rcc_format/gen-resources.sh | 9 --------- rcc_format/generate.py | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100755 rcc_format/gen-resources.sh create mode 100755 rcc_format/generate.py (limited to 'rcc_format') diff --git a/rcc_format/__init__.py b/rcc_format/__init__.py index 133bcc1..48ebd70 100644 --- a/rcc_format/__init__.py +++ b/rcc_format/__init__.py @@ -1,2 +1,3 @@ from rcc_format.util import * +from rcc_format.generate import generate from rcc_format.zstd import zstd diff --git a/rcc_format/gen-resources.sh b/rcc_format/gen-resources.sh deleted file mode 100755 index a1db9fd..0000000 --- a/rcc_format/gen-resources.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -echo '' -echo ' ' -for f in $@; do - echo ' '$f''; -done -echo ' ' -echo '' diff --git a/rcc_format/generate.py b/rcc_format/generate.py new file mode 100755 index 0000000..f42f6d4 --- /dev/null +++ b/rcc_format/generate.py @@ -0,0 +1,9 @@ +def generate(filelist, args): + print('', file=args.output) + #echo ' ' + #for f in $@; do + # echo ' '$f''; + #done + #echo ' ' + print('', file=args.output) + -- cgit v1.2.1