Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › This script is driving me crazy
New Posts  All Forums:Forum Nav:

This script is driving me crazy

post #1 of 4
Thread Starter 
I am trying to run a script that I usually do when I install things in slackware but this script is giving me trouble. I am a linux noob (2 days old) and I've been trying to edit the file for 2 hours because I know the problem is something basic to do with name, but I cannot figure it out

Theirs 2 files:
shimmerproject-Faenza-Xfce-v.0.2.1-0-gd3e85cf.tar.gz
faenza-xfce.SlackBuild

When I #sh faenza-xfce.SlackBuild

the result I get:
Quote:
........
shimmerproject-Faenza-Xfce-d3e85cf/apps/scalable/xfce4-weather.svg
shimmerproject-Faenza-Xfce-d3e85cf/apps/scalable/xfce4-workspaces.svg
shimmerproject-Faenza-Xfce-d3e85cf/apps/scalable/xfce4_xicon1.svg
shimmerproject-Faenza-Xfce-d3e85cf/index.theme
mv: cannot stat 'shimmerproject-Faenza-Xfce-54290e6': No such file or directory

I know it's something to do with the naming in the file but whatever I change there is always a similar error.

The script:

Quote:

PRGNAM=faenza-xfce
VERSION=${VERSION:-0.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

ORIG_PRGNAM=Faenza-Xfce
ORIG_FILENAME=shimmerproject-$ORIG_PRGNAM
ORIG_DIRNAME=$ORIG_FILENAME-54290e6
ORIG_VERSION=v.$VERSION-0-gd3e85cf

ARCH=noarch

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $OUTPUT $TMP $PKG/usr/share/icons
cd $PKG/usr/share/icons
tar xvf $CWD/$ORIG_FILENAME-$ORIG_VERSION.tar.gz
chown -R root:root .
find . -type f -name '.*' -delete
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

mv $ORIG_DIRNAME $ORIG_PRGNAM
cd $ORIG_PRGNAM
sed -i '/^Inherits/s/-Dark,Faenza/,Faenza-Dark/' index.theme
find . -type f -name '*.svg.png' | while read i ; do mv $i ${i/.svg/} ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Hope someone helps me, because i'm pulling my hair out lol
    
CPUMotherboardGraphicsRAM
i7 6700k Asus Z170 Premium EVGA GTX 1080 ACX 3.0 FTW Corsair Vengeance LPX 16GB 
Hard DriveHard DriveCoolingOS
Samsung 850 EVO-Series 500GB Seagate 3TB 7200 Corsair H110i GTX Windows 10 Enterprise 
MonitorKeyboardPowerCase
Catleap Q270 G115 EVGA 750B2 Phanteks Enthoo EVOLV ATX 
Mouse Pad
Steelseries 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i7 6700k Asus Z170 Premium EVGA GTX 1080 ACX 3.0 FTW Corsair Vengeance LPX 16GB 
Hard DriveHard DriveCoolingOS
Samsung 850 EVO-Series 500GB Seagate 3TB 7200 Corsair H110i GTX Windows 10 Enterprise 
MonitorKeyboardPowerCase
Catleap Q270 G115 EVGA 750B2 Phanteks Enthoo EVOLV ATX 
Mouse Pad
Steelseries 
  hide details  
Reply
post #2 of 4
ORIG_DIRNAME=$ORIG_FILENAME-54290e6 is wrong. change it to:
Code:
ORIG_DIRNAME=$ORIG_FILENAME-Xfce-d3e85cf
post #3 of 4
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

ORIG_DIRNAME=$ORIG_FILENAME-54290e6 is wrong. change it to:
Code:
ORIG_DIRNAME=$ORIG_FILENAME-Xfce-d3e85cf

Thank you, just had to remove the extra xfce from you're line and it worked perfectly!
    
CPUMotherboardGraphicsRAM
i7 6700k Asus Z170 Premium EVGA GTX 1080 ACX 3.0 FTW Corsair Vengeance LPX 16GB 
Hard DriveHard DriveCoolingOS
Samsung 850 EVO-Series 500GB Seagate 3TB 7200 Corsair H110i GTX Windows 10 Enterprise 
MonitorKeyboardPowerCase
Catleap Q270 G115 EVGA 750B2 Phanteks Enthoo EVOLV ATX 
Mouse Pad
Steelseries 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i7 6700k Asus Z170 Premium EVGA GTX 1080 ACX 3.0 FTW Corsair Vengeance LPX 16GB 
Hard DriveHard DriveCoolingOS
Samsung 850 EVO-Series 500GB Seagate 3TB 7200 Corsair H110i GTX Windows 10 Enterprise 
MonitorKeyboardPowerCase
Catleap Q270 G115 EVGA 750B2 Phanteks Enthoo EVOLV ATX 
Mouse Pad
Steelseries 
  hide details  
Reply
post #4 of 4
Quote:
Originally Posted by donmega1 View Post

Thank you, just had to remove the extra xfce from you're line and it worked perfectly!

Ah sorry, I did mean to delete that myself (it got grabbed when I copied and pasted from your post). Glad you spotted that anyway
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › This script is driving me crazy