Am having a great time with PorteuX. For me it is equal to Porteus 3.1 back in the old days. It did everything I wanted and needed.
KDE is my favorite desktop. I have been trying to expand the service menus to the point of not needing to use the terminal at all. Lazy I am.
While messing with a .tgz script, I noticed that the tgz code made a compressed nested folder group all the way up to /. Not what I wanted but it created a folder hierarchy from the source folder on up that looked suitable for making a .xzm module.
The code is:
Code: Select all
file=%f; tar cf %f-"$(date +%y-W%W-%e_%H-%M-%S-%b)".tgz %f
At first there was just a .tgz file with the name and date like I wanted. Too bad the guts were wrong.
I extracted the file and started to think about how I could use this to make the creation of .xzm modules a bit easier.
Once extracted, the result was all I needed to place into an appropriately named folder to transform into a .xzm module.
Then I realized I could automate stuff. I added to the code little by little and trying each change.
After getting the archive I extracted it to a folder, then removed the archive and what was left is the nested folder hierarchy under /.
Here is the result:
Code: Select all
file=%f; tar cf %f.tgz %f && tar -xf *.tgz && rm *.tgz %f &
The only thing I do not like is having to mess with the .tgz aspect at all. I do not know enough about this stuff to deal with that. If anyone has suggestions they would be really cool to know. At least I got what I wanted and had some fun with the cli.
Vic