systemctl-user restart ambienced.service
Name: ambience-green-hexagon
Version: 0.0.1
Release: 1
Summary: Ambience Green Hexagon
Group: System/Tools
Vendor: Schturman
Distribution: SailfisfOS
Packager: Schturman <schturman@hotmail.com>
URL: www.dhrider.co.cc
License: GPL
%description
This is a Green Hexagon ambience with sounds...
%files
%defattr(-,root,root,-)
/usr/share/ambience/*
%post
systemctl-user restart ambienced.service
%postun
if [ $1 = 0 ]; then
// Do stuff specific to uninstalls
rm -rf /usr/share/ambience/ambience-green-hexagon
systemctl-user restart ambienced.service
else
if [ $1 = 1 ]; then
// Do stuff specific to upgrades
echo "It's just upgrade"
systemctl-user restart ambienced.service
fi
fi
%changelog
* Sun Mar 16 2014 Builder <builder@...> 0.1
- First build.

.
.tar xvfz shc-3.8.9.tgz cd /home/nemo/Downloads/shc-3.8.9
gcc shc-3.8.9.c -o shc
shc -f myscript.sh gcc myscript.sh.x.c -o mybinary
myscript.sh myscript.sh.x myscript.sh.x.c
tar xvfz shc-3.8.9.tgz cd /home/nemo/Downloads/shc-3.8.9
cd /home/nemo/Downloads/shc-3.8.9 make
shc -f myscript.sh cc -Wall myscript.sh.x.c -o mybinary
myscript.sh myscript.sh.x myscript.sh.x.c
#!/bin/bash
dir=${PWD##*/}
ls -a|grep ".*\.\(sh\)"|while read line; do shc -f "$line"; done
ls -a|grep ".*\.\(x.c\)"|while read line; do gcc "$line" -o "${line/.sh.x.c/}"; done
rm -f *.x* && mkdir -p $dir-source && mv -f *.sh $dir-source
cd /path/to/scripts_dir sh binary_creator

| The Following User Says Thank You to Schturman For This Useful Post: | ||
| The Following 2 Users Say Thank You to Schturman For This Useful Post: | ||

