mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
isolinux.mk: Translating file names
Translate file names, mkisofs -l --iso-level 2 translates "-" into "_" ".tar.gz" into ".tgz" multiple . into one . only, rest underscores
This commit is contained in:
parent
6ae76f80cd
commit
e58a4d21e0
1 changed files with 6 additions and 2 deletions
|
|
@ -60,11 +60,15 @@ unpack.done: dload.done
|
|||
|
||||
copy.done: unpack.done dirs.done $(CD_FILES)
|
||||
mkdir -p $(BUILD_DIR)
|
||||
cp $(CD_FILES) $(BUILD_DIR)/
|
||||
for i in $(CD_FILES); do \
|
||||
n=`basename $$i | tr [A-Z] [a-z] | sed 's/\.tar\.gz/.tgz/; s/-/_/g; s/\([^.]*\)\.\([^.]*\)$$/\1@\2/; s/\./_/g; s/@/./'` ;\
|
||||
echo "copying $$i -> $(BUILD_DIR)/$$n" ;\
|
||||
cp $$i $(BUILD_DIR)/$$n ;\
|
||||
done
|
||||
touch $@
|
||||
|
||||
$(ISO_IMAGE): copy.done
|
||||
mkisofs -l -o $(ISO_IMAGE) \
|
||||
mkisofs -l --iso-level 2 -o $(ISO_IMAGE) \
|
||||
-b isolinux.bin -c boot.cat \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
$(BUILD_DIR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue