-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-Generate RAP so PS3 can DL them (Fix #8)
- Loading branch information
Showing
4 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
all: config.txt pkgi_games.csv pkgi_dlcs.csv pkgi_themes.csv pkgi_avatars.csv pkgi_demos.csv pkgi_updates.csv pkgi_emulators.csv pkgi_apps.csv pkgi_tools.csv | ||
config.txt:; echo "games dlcs themes avatars demos updates emulators apps tools" | tr ' ' '\n' |awk '{print "url_"$$1" https://yne.fr/psndl/pkgi_"$$1".csv"}' > $@ | ||
pkgi_%.csv: db.csv; awk -F "," 'BEGIN {type="$@";sub(/pkgi_/,"",type);sub(/.csv/,"",type);print "contentid,type,name,description,rap,url,size,checksum"} type == $$4 {print $$1"-"$$2"_00-0000112223333000,"$$4","$$6",-,"$$5",http://zeus.dl.playstation.net/cdn/"$$2"/"$$1"_00/"$$3".pkg,0,"}' $^ > $@ | ||
%.url: %.csv; awk -F "," '{print "http://zeus.dl.playstation.net/cdn/"$$2"/"$$1"_00/"$$3".pkg"}' $^ > $@ | ||
%.dup: %.csv; awk -F "," '{print $$1"/"$$2"/"$$3}' $^ | sort | uniq -d | ||
PKGI_CATEGO := games dlcs themes avatars demos updates emulators apps tools | ||
PKGI_PREFIX := pkgi_ | ||
PKGI_SUFFIX := .csv | ||
PKGI_TARGET := $(addprefix $(PKGI_PREFIX),$(addsuffix $(PKGI_SUFFIX),$(PKGI_CATEGO))) | ||
RAPS_TARGET := $(addsuffix .rap, $(shell awk -F, '{print $$5}' db.csv)) | ||
|
||
all: config.txt $(PKGI_TARGET) $(RAPS_TARGET) | ||
clean:; rm -f config.txt $(PKGI_TARGET) $(RAPS_TARGET) | ||
|
||
config.txt:; echo $(PKGI_CATEGO) | tr ' ' '\n' |awk '{print "url_"$$1" https://yne.fr/psndl/'$(PKGI_PREFIX)'"$$1"'$(PKGI_SUFFIX)'"}' > $@ | ||
$(PKGI_PREFIX)%$(PKGI_SUFFIX): db.csv; awk -F, 'BEGIN {type="$@";sub(/pkgi_/,"",type);sub(/.csv/,"",type);print "contentid,type,name,description,rap,url,size,checksum"} type == $$4 {print $$1"-"$$2"_00-0000112223333000,"$$4","$$6",-,"$$5",http://zeus.dl.playstation.net/cdn/"$$2"/"$$1"_00/"$$3".pkg,0,"}' $^ > $@ | ||
%.url: %.csv; awk -F, '{print "http://zeus.dl.playstation.net/cdn/"$$2"/"$$1"_00/"$$3".pkg"}' $^ > $@ | ||
%.dup: %.csv; awk -F, '{print $$1"/"$$2"/"$$3}' $^ | sort | uniq -d | ||
%.rap: db.csv; printf %s $(basename $(notdir $@)) | xxd -r -p - > $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters