Off-Topic > SCM EXtensions

SCM buildin how-to

<< < (2/6) > >>

Jason W:
I uploaded a fix in the libmad-sc.inc that was causing a build failure, should be good now.

vinnie:
Much material to elaborate, I lower my head and I start work :)

Jason W:
Here is a script to run for fun, creates a portable self contained circuslinux out of existing tcz's.  This approach seems to work well with some extensions, vlc is one, but not with others.  Run in a directory that does not already contain tcz files.



--- Code: ---#!/bin/sh

tce-fetch.sh circuslinux.tcz.tree

for I in `cat circuslinux.tcz.tree`; do
[ -f "$I" ] || tce-fetch.sh "$I"
done



mkdir pkgbase
for I in `ls *.tcz`; do
unsquashfs -d pkg "$I"
cp -a pkg/* pkgbase/
sudo rm -r "$I"
sudo rm -r pkg
done

cd pkgbase
mv usr/local .
rmdir usr

find . -type f -exec sed -i -e "s|/usr|././|g" {} \;

export LD_LIBRARY_PATH=local/lib
./local/bin/circuslinux



--- End code ---

jls:
I don't understand the line starting with "find"

Jason W:
That is what makes the contents of the extension portable, that is to be ported from /usr/local to /apps.  It removes hard coded paths and replaces them with relative paths, a tip from portablelinuxapps.org.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version