Quick pet2sfs

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

Quick pet2sfs

#1 Post by jpeps »

This seems to work:

Code: Select all

#!/bin/sh

NAME="$(echo ${1} | sed 's/\.pet//')"     
[ -d /tmp/work ] || mkdir /tmp/work 
pet2tgz "$1"

tar -xzf ${NAME}.tar.gz -C  /tmp/work 

rm /tmp/work/${NAME}/pet.specs 2>/dev/null
mksquashfs /tmp/work/${NAME} ${NAME}.sfs


##cleanup
rm -r /tmp/work
rm ${NAME}.tar.gz
MU also has one that works with sfs combiner

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

Should this be somewhere else in the forum? What does it do? What is it for?

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#3 Post by jpeps »

Flash wrote:Should this be somewhere else in the forum? What does it do? What is it for?
hint pet2sfs :)

Post Reply