File: convert_colorsets

package info (click to toggle)
fvwm-crystal 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,700 kB
  • ctags: 1,494
  • sloc: sh: 3,265; cs: 1,335; python: 875; makefile: 214
file content (11 lines) | stat: -rwxr-xr-x 601 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

echo ""
echo "To convert existing colorsets, run the following commands into their base folder:"
echo ""
echo find -type f -exec sed -i -e \'s:\$\\[cs_:\$\\[infostore\\.cs_:g\' {} \\\;
echo find -type f -exec sed -i -e \'s:SetEnv:InfoStoreAdd:g\' {} \\\;
echo ""
echo "You can use the first command on directories containing recipes or functions using the old cs_ prefix variables."
echo The second command will convert all the \'SetEnv\' to \'InfoStoreAdd\'. In consequence, be sure the folder and its subfolder where you run that command only contain colorset related \'SetEnv\'.
echo ""